Click here to Skip to main content
15,891,888 members
Home / Discussions / Database
   

Database

 
QuestionSQL Server 200 Pin
waqas_2k5-Aug-08 21:10
waqas_2k5-Aug-08 21:10 
AnswerRe: SQL Server 200 Pin
topcatalpha6-Aug-08 21:32
topcatalpha6-Aug-08 21:32 
QuestionNeed to create tables with different culture Pin
Satish - Developer5-Aug-08 20:04
Satish - Developer5-Aug-08 20:04 
AnswerRe: Need to create tables with different culture Pin
mghiassi6-Aug-08 7:51
mghiassi6-Aug-08 7:51 
QuestionRepost of Xquery Solution Pin
Member 31863655-Aug-08 18:27
Member 31863655-Aug-08 18:27 
QuestionRe: Repost of Xquery Solution Pin
leoinfo8-Aug-08 2:24
leoinfo8-Aug-08 2:24 
QuestionXquery solution needed Pin
Member 31863655-Aug-08 18:22
Member 31863655-Aug-08 18:22 
QuestionHow can i Do this work Programmatically for SQL EXPRESS 2005 Pin
sunil goyalG5-Aug-08 7:20
sunil goyalG5-Aug-08 7:20 
hi all,
I want to do following task as programmaticaly (not manually) to Allow Remote Connection
1.Enable the Shared memory, Named Pipes, TCP/IP protocols in SQL Server Configuration.
2.Allow Local And Remote connection which we perform IN SQL Surface area configuration.
3.Restart SQL Browser and SQL Server After making changes.
4.Create Login on Remote SQL Server

I face above problem when i Installed SQL Express on one machine and Try to connect to Remote SQL Server. Also if I want to Connect to Remote server, then Guest Account(or SQL Authentication) must be Configured on Remote machine. So how can i Configure the Account on remote server Programmatically or how can i Get the Configured account which is on Remote server . so using this account information i can connect to Remote SQLServer.

one more thing I am able connect to Remote server using trusted connection but failed to connect to Database. I use Following statement to connect to Remote SQL Server

Dim MainServer As Server = New Server(cboServer.Text.Trim & "\SQLEXPRESS")<br />
        With MainServer.ConnectionContext<br />
            .LoginSecure = True<br />
            .ConnectionString = "Trusted_Connection=Yes;"<br />
            .Connect()<br />
            .PublicServerName = cboServer.Text.Trim<br />
            frmLogin.Show()<br />
            Me.Close()<br />
            .Disconnect()<br />
        End With


but i am unable to Use Databse which reside on Remote server. I use following connection string

Dim ConnectionString As String = "Data Source=" & PublicServerName & "\SQLEXPRESS;Integrated Security=True;Initial Catalog=ABC "
or
Dim ConnectionString As String =Data Source=" & PublicServerName & "\SQLEXPRESS;Initial Catalog=ABC;Trusted_Connection=Yes; "'

but this time it give error "Login failed for user MachineName\Guest"

I try lot of googling but nothing is helpful. Please provide appropriate guidance to me
AnswerRe: How can i Do this work Programmatically for SQL EXPRESS 2005 Pin
Wendelius5-Aug-08 7:28
mentorWendelius5-Aug-08 7:28 
GeneralRe: How can i Do this work Programmatically for SQL EXPRESS 2005 Pin
sunil goyalG5-Aug-08 21:21
sunil goyalG5-Aug-08 21:21 
GeneralRe: How can i Do this work Programmatically for SQL EXPRESS 2005 Pin
Wendelius6-Aug-08 7:07
mentorWendelius6-Aug-08 7:07 
QuestionComprare two column headings Pin
DFlat4Now5-Aug-08 6:24
DFlat4Now5-Aug-08 6:24 
AnswerRe: Comprare two column headings Pin
DerekFL5-Aug-08 7:02
DerekFL5-Aug-08 7:02 
GeneralRe: Comprare two column headings Pin
DFlat4Now5-Aug-08 8:30
DFlat4Now5-Aug-08 8:30 
QuestionHow to convert variant_t data type to char* or char array or const char* or CString data type? Pin
yklim5-Aug-08 6:03
yklim5-Aug-08 6:03 
QuestionOutput Parameter value Pin
ThangamSundar5-Aug-08 2:40
ThangamSundar5-Aug-08 2:40 
AnswerRe: Output Parameter value Pin
Blue_Boy5-Aug-08 2:51
Blue_Boy5-Aug-08 2:51 
AnswerRe: Output Parameter value Pin
John_Adams5-Aug-08 19:12
John_Adams5-Aug-08 19:12 
QuestionDownload Vista Compatiable SQL Server EXPRESS Pin
sunil goyalG5-Aug-08 1:12
sunil goyalG5-Aug-08 1:12 
AnswerRe: Download Vista Compatiable SQL Server EXPRESS Pin
Blue_Boy5-Aug-08 3:06
Blue_Boy5-Aug-08 3:06 
GeneralRe: Download Vista Compatiable SQL Server EXPRESS Pin
sunil goyalG5-Aug-08 5:37
sunil goyalG5-Aug-08 5:37 
AnswerRe: Download Vista Compatiable SQL Server EXPRESS Pin
Wendelius5-Aug-08 7:33
mentorWendelius5-Aug-08 7:33 
GeneralRe: Download Vista Compatiable SQL Server EXPRESS Pin
sunil goyalG7-Aug-08 5:35
sunil goyalG7-Aug-08 5:35 
GeneralRe: Download Vista Compatiable SQL Server EXPRESS Pin
Wendelius7-Aug-08 6:29
mentorWendelius7-Aug-08 6:29 
GeneralRe: Download Vista Compatiable SQL Server EXPRESS Pin
Wendelius16-Aug-08 21:02
mentorWendelius16-Aug-08 21:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.