Viewing 15 posts - 1,741 through 1,755 (of 1,923 total)
Bhuvnesh (4/19/2010)
Location id i generated by cursor...
this should have been mentioned earlier.i was only working with "state" column
Thats the problem when the requirement is unclear with no DDL...
April 19, 2010 at 7:36 am
Also i got a doubt here; Are there any values in the p_code, p_name columns that dont comply to the Rules of Identifiers?? [For rules of identifiers CLICK HERE...
April 19, 2010 at 6:50 am
Had u posted the necessary DDL, sample data and desired output, people would have replied and fixed your problem just at the wink of your eyes..:-)
Anyways, happy to have helped...
April 19, 2010 at 6:11 am
Am sorry buddy, i cant be of much help to u in this.. lets wait for our SSC bigwigs to attend this...
Cheers!!
April 19, 2010 at 6:02 am
For the below statment,
IF @PARTNER_CODE <> '' AND @PARTNER_NAME <> ''
add ISNULL check also and try mate.. lets see if that help...
P.S: I am writing this from home where i...
April 19, 2010 at 5:59 am
Without Table structure, or sample data we cant proceed further buddy :(.. and thats the reason tho u have 20 views, u have only 2 replies...
But for a starter, i...
April 19, 2010 at 5:54 am
Oh i get it... hmmm... i dont think we have a way to check that out using T-SQL, BUT I MAY BE WRONG.. probably with little bit of a helping...
April 19, 2010 at 5:51 am
1. After the first EXEC(@SQL), flush the @sql variable; like , SET @sql = ''
2. Check if the partnercode and partnername column values are not null and then use it...
April 19, 2010 at 5:41 am
Buddy, request unclear.. can u pls post some visual representation of your desired result based on the location and track number??
April 19, 2010 at 5:33 am
Buddy, dint get ur question fully... u mean, u now need a way to find out if the SQLSERVER and its entourage services are running using T-SQL code, am i...
April 19, 2010 at 5:32 am
karthikeyan-444867 (4/19/2010)
but it is producing the exact same execution plan as the one from Jeff.
Yes. I tested both the query plan...i didn't see any difference.
Thanks Karthikeyan!! I wonder how an...
April 19, 2010 at 5:26 am
Jeff Moden (4/19/2010)
April 19, 2010 at 4:09 am
As you said no dynamic sql, i had come up with this approach.. one dis-advantage i am thinking of in this one will be the ; (semi-colon)character i am...
April 19, 2010 at 4:04 am
Hey hi, i know Jeff has given a code for your requirement, which will be 100% fast and reliable..
I just tried out some other way of coding your requirement...
April 19, 2010 at 3:59 am
I second Jeff.. any import from a flatfile should be put up in some holding table which will have nvarchar or varchar columns.. then apply your business logic and insert...
April 18, 2010 at 10:20 pm
Viewing 15 posts - 1,741 through 1,755 (of 1,923 total)