Showing posts with label learning. Show all posts
Showing posts with label learning. Show all posts

Thursday, March 22, 2012

A very basic Q

This is probably a very silly question.I started learning ASP.net by following ASP.NET Unleashed. I am stuck where he wants me to open a connection to SQL Server database. I have just downloaded
MSDE. But I dont know where to type this code and how to run it..so as to connect to the database.

<%@. Import Namespace="System.Data.SqlClient" %
<Script Runat="Server"
Sub Page_Load
Dim conPubs As SqlConnection

conPubs = New SqlConnection( "server=localhost;uid=webuser;pwd=secret;database=pubs" )
conPubs.Open()
End Sub

</Script>


Connection Opened!

Now do i have to change the uid to SA ? (i had to assign one when i downloaded and installed MSDE?

Thanks for the help.when you installed your instance of msde- did you use the username SA or did you use the username webuser?

if you used the username webuser- then you have done just fine...

Thursday, February 9, 2012

a good reference for learning differnet Joins in SqlServer 200

Is there a good document for learning different joins in Sqlserver? .I have
seen some of them on the net but not very helpful .
ThanksHi Ray
Books online is the first call for anything to do with SQL Server. The
latest version can be downloaded from
http://www.microsoft.com/sql/techin.../2000/books.asp
The topics "Using Joins"
mk:@.MSITStore:C:\Program%20Files\Microso
ft%20SQL%20Server\80\Tools\Books\acd
ata.chm::/ac_8_qd_09_3mk3.htm
and "Join Fundermental"
mk:@.MSITStore:C:\Program%20Files\Microso
ft%20SQL%20Server\80\Tools\Books\acd
ata.chm::/ac_8_qd_09_610z.htm
(which if installed in the default location you can post the above links
into the GO menu option) should give you a reasonable understanding of the
types of join available and examples you can test on the example databases.
John
"RayAll" <RayAll@.microsft.com> wrote in message
news:Ol%23PD2FHFHA.3912@.TK2MSFTNGP10.phx.gbl...
> Is there a good document for learning different joins in Sqlserver? .I
> have seen some of them on the net but not very helpful .
> Thanks
>|||Thanks John,
"John Bell" <jbellnewsposts@.hotmail.com> wrote in message
news:%23BtIpENHFHA.2924@.TK2MSFTNGP15.phx.gbl...
> Hi Ray
> Books online is the first call for anything to do with SQL Server. The
> latest version can be downloaded from
> http://www.microsoft.com/sql/techin.../2000/books.asp
> The topics "Using Joins"
> mk:@.MSITStore:C:\Program%20Files\Microso
ft%20SQL%20Server\80\Tools\Books\a
cdata.chm::/ac_8_qd_09_3mk3.htm
> and "Join Fundermental"
> mk:@.MSITStore:C:\Program%20Files\Microso
ft%20SQL%20Server\80\Tools\Books\a
cdata.chm::/ac_8_qd_09_610z.htm
> (which if installed in the default location you can post the above links
> into the GO menu option) should give you a reasonable understanding of the
> types of join available and examples you can test on the example
> databases.
> John
> "RayAll" <RayAll@.microsft.com> wrote in message
> news:Ol%23PD2FHFHA.3912@.TK2MSFTNGP10.phx.gbl...
>