Viewing 15 posts - 48,961 through 48,975 (of 49,571 total)
Can you maybe give us an example of your input data and desired output? Table structures too if possible.
November 9, 2006 at 2:34 am
Oh, that's easy.
SELECT SomeFields FROM SomeTable
WHERE RowID BETWEEN @RowID-2 and @RowID +2
It'll return up to 5 rows. If you don't want the equality condition,...
November 8, 2006 at 7:41 am
I haven't seen that error since I did web dev some years back, but then it was because of the cursortype and lock type. There are some combinations that aren't...
November 8, 2006 at 4:05 am
Because drop table is a logged operation and you are reqesting a rollback ie undo everything up to where the transaction began.
By the way, your code shouldn't even run. You...
November 8, 2006 at 3:34 am
Can you post the code of the stored procedures and the table structure please
November 8, 2006 at 3:31 am
Yes, it's one of the new SQL 2005 DM views. Since this is the SQL 2005 forum, I did the 2005 solution.
You can do the same thing with sysprocesses in...
November 8, 2006 at 12:26 am
Again, 5 users (5 different user names) or 5 connections? Is a single user allowed to make multiple connections to the database, and if so, do you count each of them,...
November 7, 2006 at 3:11 am
How many users, or how many connections?
For number of connections,
SELECT
count(*) FROM sys.dm_exec_connections
November 6, 2006 at 11:58 pm
Yeah, that will work better. Thanks. I overlooked the negating of conditions when I read up on LIKE
November 6, 2006 at 10:49 pm
If you define a data type as varchar without specifying a length, you get a varchar of length 1, hence all that you have in your variables is '1'. It's...
November 6, 2006 at 5:09 am
IsNumeric will work, but it will allow through some character data
SELECT
IsNumeric ('125D256')
November 6, 2006 at 12:12 am
Nope, sorry. You're going to have to get used to typing.
You can get management studio/enterprise manager to generate an update statement for you that at least has the full list...
November 3, 2006 at 2:24 am
Make the column an identity. Let SQL worry about the next number.
If you do increments yourself, unless you're very careful with transactions, you could end up with duplicate values (or...
November 3, 2006 at 2:16 am
Viewing 15 posts - 48,961 through 48,975 (of 49,571 total)