SQLRef - Website Created By Programmer To Programmers

Sep 14, 2006

Dear All Software Developers,

I am a hardcore programmer who treat programming as a hobby. Recently,
I have just created a website (http://www.sqlref.com) to share my
knowledge and programming experience and to record down any new tricks
that I learned. This website started with SQL info. becaue I think SQL
is the most basic but must know thing for all software developers.
Eventually, I will make this website covers other topics such as .NET,
SQL Server, Oracle, DB2 and so on. I will update it everyday.

I think all developers should be able to access the SQL reference /
Guide at any time, any place. Thus, I created this website for anybody
who need reference on SQL. While you are doing programming and stuck
with the SQL syntax, just open you web browser and type
http://www.sqlref.com
to look for you answer. I guess sqlref.com is easy enought to remember.
No registration is required because I am not selling or marketing
anything. Just a website for programmers to refer.

I hope the website is useful to you all.

Enjoy!

Warmest Regards,
Allen

View 2 Replies


ADVERTISEMENT

I Created A Website On My Localhost With Three .mdf Files Using SQL Express But Now I Get An Error When I Try To Host It On My Web Server Without SQL Express. Need Some Help On How To Change My Connection

Feb 15, 2008

An error has occurred while establishing a connection to the server.  When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Data.SqlClient.SqlException: An error has occurred while establishing a connection to the server.  When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)Source Error:
here is my web.config file:<?xml version="1.0"?><!--
Note: As an alternative to hand editing this file you can use the
web admin tool to configure settings for your application. Use
the Website->Asp.Net Configuration option in Visual Studio.
A full list of settings and comments can be found in
machine.config.comments usually located in
WindowsMicrosoft.NetFrameworkv2.xConfig
--><configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
<appSettings><add key="EmailFrom" value="webmaster@reaganpower.com"/>
<add key="EmailSubject" value="File Ready for Download!"/><add key="SmtpServer" value=""/>
<add key="MailUser" value=""/><add key="MailPassword" value=""/>
<add key="MailPort" value="25"/><add key="EmailFormatSelected" value="Text"/>
<add key="PageTitle" value="Send It Now!"/><add key="ShareLocalFolderPath" value="H:MIS DepartmentIntranetSendItNowFileStorage"/>
<add key="httpDownloadPath" value="http://misfs/SendItNow/ContentFiles/"/>
<!--
<add key="CurrentTheme" value="CleanBlue" />-->
<add key="CurrentTheme" value="CleanOrange"/></appSettings>
<connectionStrings>
<add name="ConnectionString" connectionString="Data Source=(local)SqlExpress;AttachDbFilename=|DataDirectory|FileShareDB.mdf;Integrated Security=True;User Instance=True"providerName="System.Data.SqlClient"/>
</connectionStrings><system.web><!--
Set compilation debug="true" to insert debugging
symbols into the compiled page. Because this
affects performance, set this value to true only
during development.
Visual Basic options:
Set strict="true" to disallow all data type conversions
where data loss can occur.
Set explicit="true" to force declaration of all variables.-->
 <identity impersonate="false"/>
<roleManager enabled="true"/><compilation debug="true" strict="false" explicit="true">
<assemblies><add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/></assemblies></compilation>
<pages><namespaces>
<clear/><add namespace="System"/>
<add namespace="System.Collections"/><add namespace="System.Collections.Specialized"/>
<add namespace="System.Configuration"/><add namespace="System.Text"/>
<add namespace="System.Text.RegularExpressions"/><add namespace="System.Web"/>
<add namespace="System.Web.Caching"/><add namespace="System.Web.SessionState"/>
<add namespace="System.Web.Security"/><add namespace="System.Web.Profile"/>
<add namespace="System.Web.UI"/><add namespace="System.Web.UI.WebControls"/>
<add namespace="System.Web.UI.WebControls.WebParts"/><add namespace="System.Web.UI.HtmlControls"/>
</namespaces></pages>
<!--
The <authentication> section enables configuration
of the security authentication mode used by
ASP.NET to identify an incoming user. -->
<authentication mode="Forms"/>
<!--
The <customErrors> section enables configuration
of what to do if/when an unhandled error occurs
during the execution of a request. Specifically,
it enables developers to configure html error pages
to be displayed in place of a error stack trace.
<customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
<error statusCode="403" redirect="NoAccess.htm" />
<error statusCode="404" redirect="FileNotFound.htm" />
</customErrors>-->
</system.web>
</configuration>

View 2 Replies View Related

Advance Programmers Only

Jan 6, 2004

hi ,
I am using ASP.NET with SQL Server. I have a function ABC() which creates,open ,and then dispose sqlserver's connection .
I am using ABC() twice in one .aspx page ,my friend who build this function argued that this function will open only one connection in everypage ,no matter how many times we call function ABC() in a single page ,while i denies .
Please tell me ,because our whole company database acces relies on this single ABC() function.

Thanks in Advance

View 2 Replies View Related

Inserting Pictures In DB - For VB Programmers

Jan 13, 2004

Private conn As ADODB.Connection
Private rs As ADODB.Recordset

Private Sub ConnectToDB()

Dim strData As String

'Establish the connection.
Set conn = New ADODB.Connection
Call conn.Open("driver={SQL Server};server=srv_scgbscg_sgbd;uid=tdela;pwd=pas sword;database=Mercure_tst")

'Open the recordset
Set rs = New ADODB.Recordset

'Make sure you don't retrieve any data !!!
Call rs.Open("Select * From Images Where FileName='0'", _
conn, _
adOpenKeyset, _
adLockOptimistic)

Call SaveToDB

Call rs.Close
Call conn.Close

Set rs = Nothing
Set conn = Nothing

End Sub

Private Sub SaveToDB()

Dim bytBLOB() As Byte
Dim strImagePath As String
Dim intNum As Integer

'Save the record
strImagePath = Trim("c:windowsureauMyImage.bmp")

With rs
'Open the picture file
intNum = FreeFile
Open strImagePath For Binary As #intNum
ReDim bytBLOB(FileLen(strImagePath))

'Read data and close file
Get #intNum, , bytBLOB
Close #1

Call .AddNew
.Fields("FileName") = "The image title"
Call .Fields("Picture").AppendChunk(bytBLOB)
Call .Update
End With

End Sub

View 1 Replies View Related

PHP Programmer Needs Help Learning To Use SQL In VB

Jan 1, 2007

I'm used to programming in PHP and need helping learning how to do SQL stuff in VB (using Visual Studio Pro, if that makes a difference).
 
For instance, in PHP I might do something like this:
//some code to connect to the database
$result = mysql_query("SELECT * FROM `table_name` WHERE `some_field` = true") OR die("ERROR: ".mysql_error());
while ($row = mysql_fetch_assoc($result)) {  extract($row);  //do what needs to be done with the variables}
 
How can I do that in Visual Basic?
This is what I have so far and that's only from cutting and pasting from some websites.  1 Using connection As New SqlConnection("Data Source=.SQLEXPRESS;AttachDbFilename=|DataDirectory|ASPNETDB.MDF;Integrated Security=True;User Instance=True")
2 connection.Open()
3 Dim command As SqlCommand = New SqlCommand("SELECT * FROM GE_Data", connection)
4 'now how do I get to the data???
5
6 connection.Close()
7 End Using
 
-Mathminded

View 2 Replies View Related

Do You Need To Be A Programmer To Use SSIS?

Aug 29, 2006

Hello

I've been looking for SSIS examples where you need to import data from a OLE DB datasource and export it to a OLE DB destination source whilst the data in a colum is being transformed with a simple SQL statement.

For example:

SELECT (CONVERT(datetime, Left(Counterdatetime, 23))) datum
FROM CounterData

It seems to me that you have to use the Script Task Component ans start coding in Visual Basic.Net (or whatever)

Am I missing something here or is it normal you have to be a programmer to do simple thins like that?

Many thanks!

View 5 Replies View Related

SQL Programmer Tool Alternative

Dec 17, 2004

Hi, does anybody use/know a nice and convinient yet rich of functionality tool that could replace the SQL Programmer one?

What do you recommend to look at?

Forgot to mention, it must work with SQL, Oracle and Sybase databases/servers.

Thx
Dim

View 3 Replies View Related

What's The Best SQL Book For An Intermediate Level Database Programmer?

Nov 23, 2004

In May of this year I graduated from Penn State with a BS in IST (Information Sciences and Technology). Right after graduation I got a database programming job with a company that uses Delphi 6 and MS SQL Server 2000.

I've been working with this company for six months now but I'm still not very good with SQL. I can do basic SQL queries and table joins (as well as use datetime functions and cursors), but I'd say I'm only at an intermediate level (at best).

So... I'm looking to learn more about SQL. I'm guessing a good SQL reference book would help, but I'd really prefer a good book that actually teaches you and guides you along. The only problem is that I don't want a basic/beginner level SQL book since I already know all of the basics.

Can anybody recommend anything for me?

Thanks!

View 2 Replies View Related

What's The Best SQL Book For An Intermediate Level Database Programmer?

Jul 20, 2005

In May of this year I graduated from Penn State with a BS in IST(Information Sciences and Technology). Right after graduation I got adatabase programming job with a company that uses Delphi 6 and MS SQLServer 2000.I've been working with this company for six months now but I'm stillnot very good with SQL. I can do basic SQL queries and table joins (aswell as use datetime functions and cursors), but I'd say I'm only at anintermediate level (at best).So... I'm looking to learn more about SQL. I'm guessing a good SQLreference book would help, but I'd really prefer a good book thatactually teaches you and guides you along. The only problem is that Idon't want a basic/beginner level SQL book since I already know all ofthe basics.Can anybody recommend anything for me?Thanks!

View 2 Replies View Related

I Need Some Simple Security (for SQL Server Management Studio) In A Group Of Programmers.

Dec 5, 2007

Hi, I'm working in a web project.
In our lab, all the PCs are installed with SQL Server Management Studio, and the codes of the site are left by the previous batch of programmers.
Here is briefly how our web works, the web will call the sql server providing a username (userA) and password (aaaaaa) to log into the database, then the web can connect to the database to do various functions like select, insert, update and delete.

Currently anyone can go to thier SQL Server Management Studio on thier PC to edit various things like names and columns of tables by logging in as userA.

But, we now only want a small number of users to have the ability to change things in the database. What are some ways we can do that?

Something that I've thought of is that only allow userA to log in and do functions like select, insert, update and delete and do not have the ability to edit things like names and columns of tables. Have a userB with password only known to me that can have full control of the database which I have done.

View 2 Replies View Related

Desperate! - Need Simple MSSQL Server Monitoring Scripts, Ideas, Etc That Can Be Performed By Operator Types (non-programmers)

Jul 20, 2005

Does anyone have any basic, simple scripts of sp's that I can give mycomputer operators to use to monitor for serious conditions on our sqlservers? We are new in the ms-sql arena, a small shop and we cantreally purchase any tools to monitor these servers, but we need somebasic checks that we can use to make sure a server is performing in areasonable fashion, no blocks, cpu<xx%, memory not pegged, IO working,etc...and we need to be able to do this without bugging ourprogrammers every time we are wondering why things are slowwnig down.We are a split shop between as400s and sql servers, and our operationsstaff has no problem performing this type of duty on the 400s. I thinksince the sql servers are so easy to deploy into production, the ideaof how to monitor these things health got lost in the shuffle andallowing the programmers to do it just serves to destabilize ourenvironment.Please help! Our shop has turned to chaos since we went live withMSSQL centric applications and everytime one programmer "resolves anissue" some other programmers application starts to act up.

View 6 Replies View Related

Get New Database Created Then Running Script To Created Tables / Relationships

Jun 29, 2015

trying to get a new database created then running a script to created the tables, relationships, indexes and insert default data. All this I'm making happen during the installation of my Windows application. I'm installing SQL 2012 Express as a prerequisite of my application and then opening a connection to that installed SQL Server using Windows Authentication. 

E.g.: Data Source=ComputerNameSQLEXPRESS;Initial Catalog=master;Integrated Security=SSPI; Then I run a query from my code to create the database eg: "CREATE DATABASE [MyDatabaseName]".

From this point I run a script using a Batch file containing "SQLCMD....... Myscriptname.sql". In my script I have my tables being created using "Use [MyDatabaseName]   Go   CREATE TABLE [dbo].[MyTableName] .....". So question is, should I have [dbo]. as part of my Create Table T-SQL commands? Can I remove "[dbo]."? Who would be the owner of the database? If I can remove the [dbo]., should I also remove dbo. from any query string from within my code?

View 3 Replies View Related

Rollback Will Drop Created Tables And Drop Created Tables In Transaction..?

Dec 28, 1999

Hi folks.

Here i have small problem in transactions.I don't know how it is happaning.
Up to my knowldge if you start a transaction in side the transaction if you have DML statements
Those statements only will be effected by rollback or commit but in MS SQL SERVER 7.0 and 6.5
It is rolling back all the commands including DDL witch it shouldn't please let me know on that
If any one can help this please tell me ...........Please............
For Example
begin transaction t1
create table t1
drop table t2

then execute bellow statements
select * from t1
this query gives you table with out data

select * from t2
you will recieve an error that there is no object

but if you rollback
T1 willn't be there in the database

droped table t2 will come back please explain how it can happand.....................

Email Address:
myself@ramkistuff.8m.com

View 1 Replies View Related

SQL To Website

Jan 10, 2007

Forgive my ignorance but I'm extremely new to SQL.

What is the easiest way to setup a web based interface to access sql data? Any help would be great.

View 3 Replies View Related

Search WebSite!!!!!!!!!

Sep 9, 2006

I'm trying to make a searching tool in my web site that will search in one table in databaseWhat i want to do is to search by three columns and shows the result if the string found in one of this three columns, so here what i tried to and its not working okay, coz sometimes it works and other not while entering correct stringstring Search = Request.QueryString["s"].ToString(); string Sql = "SELECT * FROM Topics WHERE TopicName LIKE '% " + Search + " %' OR";Sql += " TopicIntro LIKE '% " + Search + " %' OR TopicBody LIKE '% " + Search + " %'";I also wanna know how to remove quotations and other stuff that shows error message if entered in the TextBoxThank you alot

View 6 Replies View Related

I Am Getting This Err Msg When Trying To Logon To My Website On The Web

Jun 29, 2007

HelloI am getting this err msg when trying to logon to my website on the web - on my machine there is no prob, An error occurred while established a connection to the server.When connection to Sql.S 2005, this failure may be caused by the fact thatunder the default settings sql.s doesn't allow remote connection.(provider :Sql.S Network interface, error:26- Error Location Server/Interface Specified)(the files path is like in the web host s)

View 2 Replies View Related

Images In DB For A Website

Oct 20, 2005

         Hi everyone.  This is my
first post here.  I did a quick search and didn't find what I as
looking for, so I'm hoping you all can help me. 

I'm working on a project that will allow my company to upload images to
a database and have the website pull the images from the DB.  We
are planning to incorporate some type of cacheing, however I'm
skeptical as to if it is really necessary.  I imagine that I'm
certianly not the first to do this and I'm wondering if someone can let
me know if I truly should expect a performance hit, or if I shouldn't
really worry about it b/c this is a very common mantra. 

Thanks all.  I've been pretty vague and haven't explained all of
the details.  I can write more, but I'm just looking for
generalizations right now.

Thanks,

HD

View 1 Replies View Related

Problem With Website And Db

Mar 13, 2006

I am new to .NET and the Visual Web Developer Express and what not...I have created a website on my machine which works wonderfully...however, and I'm sure this is somewhere but I can't find it, I cannot get it to work on my host server...the Default page comes up, but when I try to sign in it says:
"An attempt to attach an auto-named database for file c:hostingwebhost4lifememberharrison0801App_Dataaspnetdb.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share."
The host support tells me to change the db name from aspnetdb to something else...I do this and when I run the site again or try to log in, I get the exact same error message...then they go on to tell me that I have to remove the LocalSqlServer in the web.config file which now looks like this:
<connectionStrings>      <remove name="LocalSqlServer"/>      <add name="LocalSqlServer" connectionString="Data Source=.SQLEXPRESS;Integrated Security=True;AttachDbFilename=|DataDirectory|aspnetdb.mdf;User instance=true;"  providerName="System.Data.SqlClient" />
      <add name="Example" connectionString="Data Source=.SQLEXPRESS;Integrated Security=True;AttachDbFilename=|DataDirectory|example.mdf;User instance=true;Initial Catalog=example;"  providerName="System.Data.SqlClient" />
</connectionStrings>
Of course this isn't working either...otherwise I would off playing on my server, and not posting here. Also, when I set up all the roles, users, and what not on my machine...does this carry over to the host machine?
Desperately needing massive help here....
Not a DBA and no expert in .NET
Thank you very much in advance,
Darren
 

View 2 Replies View Related

Website 100% Database

Mar 4, 2006

I'm developing a website, its completley 100% Database driven, ever piece of content is from the database, is this a bad idea?

View 4 Replies View Related

Connecting To Asp.net Website

Mar 15, 2004

I want to connect to a asp.net website....

does any1 know how to connect queries from the database to the website??

Ta

View 1 Replies View Related

SQLServer Website

Mar 18, 2004

hi Mr.satya,

i am new to MS-SQL server 2000....
but i know well in orcle8i......

My company is going to switchover to SQLserver....
so i need startup in sqlserver.....

could u tell me the website for starters.......

that will be very helpful to me....

thanks sir

View 2 Replies View Related

Website Report

Dec 3, 2006

Hi I want to have a report on a website page that will respond to user input.

Basically a page that will displays requests when the user inputs a user_id; the user will then need to be able to drill down and select a specific request to display and print that request.

sql server 2005
visual studio 2005
win xp

View 2 Replies View Related

SQL And Website Integration

Apr 13, 2007

Hi,

It's been a long time since I last experimented with SQL Server (2001) so I am not sure of new product features or developer techniques.

A client of mine is wanting to deploy an E-Commerce website and one if the core requirement is that the site must integrate with his internal MS SQL Database i.e. Orders placed online must be seamlessly entered into his internal Sales database. Ideally this would not require any re-keying or daily batch imports.

Many web hosts offer SQL hosting so how (if it is possible) could I link the hosted database to the internal database?

Any help/tips would be appreciated.

Thanks in advance

Scott.

View 1 Replies View Related

Reports In ASP.net Website

Feb 12, 2008

Hi,

I have a web page where my users are selecting a bunch of filters to generate a report. The page then pulls the initial data from the database, applies some adjustments to the records, and then puts the data in a temporary table for that user. I want to create a report template (or a report saved on the report server) for this report. I want to use the same report for each user but be able to change the datasource for the report on the fly for the current user's temp table in my webpage before displaying the report. Is this possible?

~ Thanks

View 1 Replies View Related

Add A Link To RS Website

Mar 19, 2008



I would like to add a link to the RS homepage -


| Helpdesk | Home | My Subscriptions | Site Settings |

Any idea how I can get this done ?

Thanks

View 3 Replies View Related

ReportServer Website

Feb 13, 2007

Ok, I have this up and running thanks to the help of lots of users in this forum (Thank You again)

I deployed some reports, and everything looks fine, however to add another twist to this, I would like the website to look prettier, by adding something like a welcome page,and some folders and such.

Does anyone have any ideas on how to do that ??? DO you have any material or a website, where I can get some info ??





Thanks

View 1 Replies View Related

Asp Website Login With Sql?

Dec 25, 2007

I wanted to make a login for custom content on my asp website. I installed 2005 sql, gave it a named instance(sql34). I set the connections to local and remote for tcp only in the "surface area config", and made the tcp enabled in "sql manager". All of the sql services are started. So i open up the "server management studio" and it prompts me for a connection. I sellect "database engine" because thats what i installed. I typed the server's name in the "server name" and select sql server authentication for the "authentication", and use my username and password for the login.
Then I get a message cannot connect:
the default settings sql server does not allow remote connections(provider:named pipes provider,error:40-could not open a connections to sql server)(microsoft sql server, error:2)
What is the deal with this?

Another problem was i saw the sql express does not integrate with the real sql 2005. So how do i make mywebsite's web.config(express edition) to integrate for my real sql 2005 server?
An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified

View 1 Replies View Related

SSRS And C# .Net Website

Feb 6, 2008

I'm a newbie with SQL Server Reporting Services. I've played around with creating reports and I'm now ready to move on with calling reports from my C# .Net website. Does anyone know of a good tutorial to get me started? I'm specifically interested in building the SQL string on the fly using responses from the my website user and then using that string to populate the report. Thanks!

View 3 Replies View Related

Website Seems To 'sleep' When No One Accesses It....

Jan 24, 2007

Hi,
Im currently running a website in conjuction with MSSQL Express. However at the moment the website/database seems to 'sleep' when no-one is using it, then there are huge dealays accessing the data while the database/website kicks in again. I tried to google this but truthfully i don't know what i am looking for. Does anyone have any ideas? Or whether this problem is Database or website driven? I thought there might be a control in the web.config but i haven't found a solution as yet!
Thanks
 Daniel

View 1 Replies View Related

The SQL Server Is Not On The Same Machine As The Asp Website

Jun 1, 2007

Hi, I'm new in asp.net and I have few questions.
My hoster have the SQL server and the webserver on different machine. I need to use a login  to restrict acces to some  webpages and I see that asp.net is storing that data in App_data/ASPNETDB.MDF which have the connection string set to local server. Can asp store that data on a remote database?
 

View 2 Replies View Related

SQL Server ---- Deploying A WebSite

Jun 25, 2007

Since from using my local host to view my website, I am assuming I already have SQL Server installed on my computer? Is it possible to have users access my website files directly onto there own computer, say if they type my ip address or domain name into their address bar?  What I am actually wanting to do is to host my website from my home computer... Any ideas, or good slash easy to understand articles on how to do this?

View 8 Replies View Related

How Do I Access The SQL Server From A Website.

Feb 2, 2004

How do I access the SQL server from a website, using my Machine Account, not the ASP.NET account?

thanks.

.intrino.

View 5 Replies View Related

Copying SQL Server Website To CD

Apr 10, 2005

Hi!
Not sure if this is the right place to post. I need to copy a website that I created on a CD. It is using SQL Server as the database and VB, ASP as front end. However, the problem is that I need to copy it in such a way so that it can be viewed from the CD itseld without needing MSDE or SQL Server. Need help.
Thanks.

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved