Click here to Skip to main content
11,716,249 members (87,798 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#
Hello guys


Execute queries in c#

I was wondering how it's going . I mean , what if I wanted to use query when the program already connected to sql

for example

USE SRO_VT_SHARD
UPDATE [dbo].[_RefObjCommon]
SET Service = 1
WHERE CodeName128 like '%ITEM_EU%'
Posted 8-Feb-13 1:46am
Comments
Manfred R. Bihy at 8-Feb-13 7:50am
   
It's going well, but you'll have to try it though. Where's the problem? Is your google foo that bad?
Marcus Kramer at 8-Feb-13 10:01am
   
Good to know that things are well with you Manfred. :)
Manfred R. Bihy at 8-Feb-13 11:32am
   
Well, it's seems to be going well with me. About OP I'm not so sure.

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Same query will work. I don't see any problem in it.
  Permalink  
Comments
Phoenix1337 at 8-Feb-13 8:55am
   
And how to insert it :|

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 599
1 Richard MacCutchan 280
2 Maciej Los 275
3 OriginalGriff 160
4 F-ES Sitecore 135
0 Sergey Alexandrovich Kryukov 1,003
1 Richard MacCutchan 430
2 CHill60 415
3 Maciej Los 399
4 OriginalGriff 385


Advertise | Privacy | Mobile
Web03 | 2.8.150901.1 | Last Updated 8 Feb 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100