Click here to Skip to main content
16,005,552 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to open all the pages in .tif files? Pin
Gavin Jeffrey16-Feb-05 0:46
Gavin Jeffrey16-Feb-05 0:46 
GeneralRe: How to open all the pages in .tif files? Pin
Deepa3016-Feb-05 1:26
Deepa3016-Feb-05 1:26 
GeneralRe: How to open all the pages in .tif files? Pin
Gavin Jeffrey17-Feb-05 10:34
Gavin Jeffrey17-Feb-05 10:34 
QuestionEquivalent of Delay in C#? Pin
Gregg Holter15-Feb-05 18:18
Gregg Holter15-Feb-05 18:18 
AnswerRe: Equivalent of Delay in C#? Pin
S. Senthil Kumar15-Feb-05 18:27
S. Senthil Kumar15-Feb-05 18:27 
GeneralRe: Equivalent of Delay in C#? Pin
Gregg Holter15-Feb-05 18:31
Gregg Holter15-Feb-05 18:31 
Generalaccessing database using webservice Pin
ronin177015-Feb-05 15:57
ronin177015-Feb-05 15:57 
GeneralRe: accessing database using webservice Pin
Kodanda Pani15-Feb-05 18:07
Kodanda Pani15-Feb-05 18:07 
Hi ronin,

You can access the database from the webservice in the same way you access from the other applications. The following lines of code connect to the database and return the results in the form of a dataset.

[WebMethod]
public DataSet GetData()
{
SqlConnection conn = new SqlConnection();
string connstring = "Persist Security Info=false; Integrated Security =false; database=DATABASENAME; server=DATABASESERVERNAME; User ID=USERID; Password=PASSWORD";
conn.ConnectionString = connstring;
DataSet ds = new DataSet("Employee Data Set");
SqlDataAdapter adptr = new SqlDataAdapter("select * from TABLE NAME", connstring);
adptr.Fill(ds);
return ds;

}

Hope this will help you.

Regards
SGS
GeneralRe: accessing database using webservice Pin
padvit15-Feb-05 20:10
padvit15-Feb-05 20:10 
Questionmemory leaks? Pin
15-Feb-05 15:32
suss15-Feb-05 15:32 
AnswerRe: memory leaks? Pin
S. Senthil Kumar15-Feb-05 18:28
S. Senthil Kumar15-Feb-05 18:28 
GeneralRe: memory leaks? Pin
TheSnakeByte15-Feb-05 20:03
TheSnakeByte15-Feb-05 20:03 
GeneralGet user groups of an authenticated domain user Pin
Hong Dat Huynh15-Feb-05 15:01
Hong Dat Huynh15-Feb-05 15:01 
GeneralRe: Get user groups of an authenticated domain user Pin
Mazdak15-Feb-05 23:17
Mazdak15-Feb-05 23:17 
GeneralRe: Get user groups of an authenticated domain user Pin
Scott Serl16-Feb-05 8:13
Scott Serl16-Feb-05 8:13 
GeneralRemove Hyperlink attribute from DataGrid in C# Pin
Vipul Mehta15-Feb-05 14:45
Vipul Mehta15-Feb-05 14:45 
GeneralRemove Hyperlink attribute from DataGrid in C# Pin
Vipul Mehta15-Feb-05 14:45
Vipul Mehta15-Feb-05 14:45 
QuestionEvil 'Show Desktop' or drawing on the Desktop? Pin
TyronX15-Feb-05 13:57
TyronX15-Feb-05 13:57 
AnswerRe: Evil 'Show Desktop' or drawing on the Desktop? Pin
TyronX16-Feb-05 8:13
TyronX16-Feb-05 8:13 
Generalreturning values from a thread Pin
IsaacB15-Feb-05 12:03
IsaacB15-Feb-05 12:03 
GeneralRe: returning values from a thread Pin
DougW4815-Feb-05 16:39
DougW4815-Feb-05 16:39 
GeneralRe: returning values from a thread Pin
S. Senthil Kumar15-Feb-05 18:30
S. Senthil Kumar15-Feb-05 18:30 
GeneralReading True Color image in C# Pin
tota_115-Feb-05 11:38
tota_115-Feb-05 11:38 
GeneralRe: Reading True Color image in C# Pin
Christian Graus15-Feb-05 11:47
protectorChristian Graus15-Feb-05 11:47 
GeneralC# and SystemTimeToTzSpecificLocalTime Pin
tomsmbox-codeproject15-Feb-05 11:17
tomsmbox-codeproject15-Feb-05 11:17 

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.