Viewing 15 posts - 2,176 through 2,190 (of 2,267 total)
It is hard to comment without knowing some more information about the table structures and how they are used.
1000 rows is not really a lot of rows for SQL server,...
May 21, 2008 at 9:05 am
use ROW_NUMBER ()
SELECT ID, userid ,
ROW_NUMBER() OVER (PARTITION BY userid ORDER BY userid) AS NewOrder
FROM rentalsTest
or as an update
update rentalsTest
set sortorder = NewOrder
FROM (SELECT Id, ROW_NUMBER() OVER (PARTITION...
May 21, 2008 at 7:30 am
Creating indexes would be a good start.
if possible simplify your join
May 20, 2008 at 8:52 am
using SSMS,
expand Security Group --> Right Click Schemas --> Create New Schema...
May 20, 2008 at 8:40 am
SET std_acc ='123456789' + CAST(@int_counter AS VARCHAR(9)),
this is the problem, why are you combining the data, if you state in...
May 20, 2008 at 3:33 am
Lots of new stuff,
the one I use the most is the new Date data type;
there is no longer the need to add an arbitrary time to date only records.
May 20, 2008 at 3:27 am
o/p = output ??
change the options to output the results to text file, then print from there.
Right Click in Query Window --> Results to --> Text
or save it...
May 16, 2008 at 4:40 am
As Matt said, check what database you are running this on.
Also I only wrote the SQL from the little information that was given, if you provide the table structures...
May 15, 2008 at 8:52 am
you can use the import/export wizards.
Right click on the database--> Tasks --> Import data.
Or write a sql INSERT statement and use the Three part naming convention for the table on...
May 15, 2008 at 8:03 am
I would have to disagree with trigeers,
set up PK->FK references in your database, and create one procedure to do the data manipulation as Kevin suggested.
May 15, 2008 at 6:32 am
rahul (5/14/2008)
That means i have to store all the values to different table and retrieve values from that table?
That would be the best way of doing this.
instead of
and...
May 14, 2008 at 5:13 am
Or put the values that you need into a table and select them from there, will run more efficently and will be more scalable.
post here if you need any...
May 14, 2008 at 5:01 am
you are trying to convert a string that contains commas to an Int,
so it can not convert to an int.
strip them out.
Unless you are trying to covert each comma...
May 14, 2008 at 4:37 am
The value has the commas in the wrong place, strip out the commas and convert it.
you may also have to use the FLOAT data type as the result may...
May 14, 2008 at 4:26 am
I am a little confused,
how many rows are you dealing with in your tables?
May 13, 2008 at 8:28 am
Viewing 15 posts - 2,176 through 2,190 (of 2,267 total)