Click here to Skip to main content
15,895,142 members
Home / Discussions / Database
   

Database

 
AnswerRe: what is @identity in sql server 2005 Pin
Ashfield8-Oct-08 21:10
Ashfield8-Oct-08 21:10 
AnswerRe: what is @identity in sql server 2005 Pin
Frank Kerrigan8-Oct-08 22:03
Frank Kerrigan8-Oct-08 22:03 
GeneralRe: what is @identity in sql server 2005 [modified] Pin
Roney9-Oct-08 0:25
Roney9-Oct-08 0:25 
Questionsp_fulltext_catalog [modified] Pin
dangquoctrang8-Oct-08 20:23
dangquoctrang8-Oct-08 20:23 
AnswerRe: sp_fulltext_catalog Pin
Ashfield8-Oct-08 21:08
Ashfield8-Oct-08 21:08 
QuestionSpecial Characters [modified] Pin
Dushan1238-Oct-08 19:03
Dushan1238-Oct-08 19:03 
AnswerRe: Special Characters Pin
Parwej Ahamad8-Oct-08 19:19
professionalParwej Ahamad8-Oct-08 19:19 
QuestionOverride Stored Connection String Pin
chrisace8-Oct-08 15:22
chrisace8-Oct-08 15:22 
I have a Windows application that uses typed datasets. When setting up the datasets, Visual Studio asks if you want to remember the connection. This is helpful when making changes to the datatables or table adapters.

Before filling the dataset, I programatically change the connection string of each table adapter so that it will connect to the remote database. Before this operation, it is set to the local database since that is the one I am developing on.

All goes well except with one form. See the sequence of events below:

First I change the connection string.

Me.LocationsTableAdapter.Connection.ConnectionString = Database.gdbRemoteConnection.ConnectionString

When calling the following fill method, it works as it should.

Me.LocationDataTableAdapter.FillByLocationID(Me.DsLocations.LocationData, cmbTestLocation.SelectedValue)

When calling the following fill method, it displays an error message saying the database location is not correct. It is referencing the local database even though I changed the connection string.

Me.LocationDataTableAdapter.FillByEntryDate(Me.DsLocations.LocationData, dtmDateFrom.Value.Date, dtmDateTo.Value.Date)

If I step through the code, it even shows the connection string set to the remote database when the fill method is called. Is this a known bug?
AnswerRe: Override Stored Connection String Pin
Mycroft Holmes8-Oct-08 21:34
professionalMycroft Holmes8-Oct-08 21:34 
AnswerRe: Override Stored Connection String Pin
Frank Kerrigan8-Oct-08 22:05
Frank Kerrigan8-Oct-08 22:05 
GeneralRe: Override Stored Connection String Pin
chrisace9-Oct-08 12:42
chrisace9-Oct-08 12:42 
Questionhow can we restore database if i have DBscripts Pin
Aslesh8-Oct-08 5:36
Aslesh8-Oct-08 5:36 
AnswerRe: how can we restore database if i have DBscripts Pin
Frank Kerrigan8-Oct-08 6:20
Frank Kerrigan8-Oct-08 6:20 
QuestionBulk Copy with Images Pin
JoZ CaVaLLo8-Oct-08 4:25
JoZ CaVaLLo8-Oct-08 4:25 
AnswerRe: Bulk Copy with Images Pin
Sherif728-Oct-08 5:17
Sherif728-Oct-08 5:17 
GeneralRe: Bulk Copy with Images Pin
JoZ CaVaLLo8-Oct-08 5:30
JoZ CaVaLLo8-Oct-08 5:30 
GeneralRe: Bulk Copy with Images Pin
Sherif728-Oct-08 21:23
Sherif728-Oct-08 21:23 
GeneralRe: Bulk Copy with Images Pin
JoZ CaVaLLo8-Oct-08 22:16
JoZ CaVaLLo8-Oct-08 22:16 
GeneralRe: Bulk Copy with Images Pin
JoZ CaVaLLo8-Oct-08 23:24
JoZ CaVaLLo8-Oct-08 23:24 
AnswerRe: Bulk Copy with Images Pin
nelsonpaixao8-Oct-08 13:37
nelsonpaixao8-Oct-08 13:37 
GeneralRe: Bulk Copy with Images Pin
JoZ CaVaLLo8-Oct-08 20:46
JoZ CaVaLLo8-Oct-08 20:46 
GeneralRe: Bulk Copy with Images Pin
nelsonpaixao9-Oct-08 13:13
nelsonpaixao9-Oct-08 13:13 
GeneralRe: Bulk Copy with Images Pin
JoZ CaVaLLo9-Oct-08 20:24
JoZ CaVaLLo9-Oct-08 20:24 
AnswerRe: Bulk Copy with Images Pin
Mycroft Holmes8-Oct-08 17:18
professionalMycroft Holmes8-Oct-08 17:18 
Question[Message Deleted] Pin
developer.ravish8-Oct-08 1:32
developer.ravish8-Oct-08 1:32 

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.