Viewing 15 posts - 256 through 270 (of 1,048 total)
can you please some more information what you required as its not clear to us...
Also please post the DDL scripts to create the table and script to insert data into...
August 19, 2013 at 11:24 pm
You havn't provide much information but I am suggesting you a solution that you can follow to accomplish your task:
you can first import all the username from excel sheet...
August 19, 2013 at 7:08 am
this problem is not realted to SQL server so please post this to a relevant forum
August 19, 2013 at 5:17 am
the requirment that you have specified is not clear....
can you please provide some more detail information ?
August 19, 2013 at 2:08 am
Erland Sommarskog (8/19/2013)
kapil_kk (8/18/2013)
Thanks Erland for the info...
one more thing I saw in your code is that you write
FETCH cur INTO @filename
only once inside the loop....
Yes. It is common...
August 19, 2013 at 2:00 am
Erland Sommarskog (8/18/2013)
kapil_kk (8/17/2013)
Slight changes in Erland script as cursor was not close in that script
DEALLOCATE implies CLOSE, so CLOSE it's not needed. You need CLOSE if you intend to...
August 18, 2013 at 11:28 pm
Great formatted post this time 😛
I think this is what you are looking:
select d.drugname, d.packsize,
doc.name, doc.location
from drugs d
left join doctor_prescribed_drugs dpd on d.drugref = dpd.drugref
left join doctor doc on doc.doctorref...
August 18, 2013 at 11:20 pm
Creating Linked Server will solve your problem......
Can you please post what exact error you are getting while inserting?
August 17, 2013 at 8:32 pm
If you want to get rid off loops then you can use TALLY table.
Here is the excellent article by Jeff about Tally table, please read it, it will...
August 17, 2013 at 8:31 pm
Slight changes in Erland script as cursor was not close in that script :
Here is the modified script:
DECLARE cur CURSOR STATIC LOCAL FOR
SELECT FileName FROM tbl
OPEN cur
FETCH...
August 17, 2013 at 8:25 pm
Also read the article that Jeff has posted, it an excellent article...
Previously I used to use PIVOT but after reading Jeff's article I start using CROSS TAbS....
Thanks Jeff for that...
August 17, 2013 at 8:19 pm
Welcome to the SSC 😛
While you post the problems please the DDL statements of Tables, Insert data and desired output so that we can help out you guys quickly.............
Here is...
August 17, 2013 at 8:12 pm
Viewing 15 posts - 256 through 270 (of 1,048 total)