Viewing 15 posts - 13,546 through 13,560 (of 13,841 total)
@tmpUserAccounts is being declared as a local variable, with a datatype of table. So it is different from a temporary table. It should therefore be possible to SET...
January 5, 2005 at 11:35 pm
One idea that is a little simpler is for each user to have a count of "open" posts. If the count is 1 or greater, display a message every...
January 5, 2005 at 8:45 pm
The timestamp datatype is provided by SQL Server as a simple way of versioning records in a table - among other things, it enables you to track which rows have...
January 5, 2005 at 8:15 pm
I can't explain it, but here is a quote from BOL:
SELECT @local_variable
Specifies that the given local variable (created using DECLARE @local_variable) should be set to the specified expression.
It is recommended...
January 4, 2005 at 4:08 pm
Yep, if the datatypes of 'Handled' and 'ServiceLevel' are integer, then the result of your calculation will be an integer.
You could try the following, to force the result to be...
January 4, 2005 at 4:04 pm
Can you post the calculations?
When you say 'proper', what do you mean?
Phil
January 4, 2005 at 1:45 pm
Instead of this:
SELECT @cmd = 'USE DELTEKCP'
execute @ret = sp_grantdbaccess @loginame, @name_in_db OUT
Try this:
set @cmd = 'USE DELTEKCP sp_grantdbaccess ' + @loginame + ', ' +...
January 4, 2005 at 1:42 pm
I don't know whether this will be of any help, but here is some code that returns a list of tables/columns and defaults within the current db.
select table_name, column_name, column_default...
January 4, 2005 at 12:55 am
Thanks Andy
A couple here.
http://www.sqlservercentral.com/forums/shwmessage.aspx?forumid=8&messageid=153039#bm153082
http://www.sqlservercentral.com/forums/shwmessage.aspx?forumid=169&messageid=152271#bm152956
A couple of other limbo posts have been answered since I wrote my comment. It might just be the Christmas break, but you know how it...
January 4, 2005 at 12:45 am
I second all of the good feedback about this article and have another suggestion. I have posted several solutions recently - well, I thought they were solutions
January 3, 2005 at 3:05 pm
Using getdate() as an example date:
select cast(floor(cast(getdate() as float)) as datetime)
January 2, 2005 at 11:21 pm
Hmmm ... one way would be to create a calculated field on your table - call it 'concat', say, which is the concatenation of all twelve fields, replacing all nulls...
December 30, 2004 at 7:08 pm
Not that I know of. A UDF will do this fairly easily - something like this:
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS ON
GO
create function dbo.ascii_big (@string varchar(1000))
returns int
as
begin
declare @position int,...
December 30, 2004 at 2:42 pm
I cannot schedule anything more frequently than every minute - is that good enough?
December 30, 2004 at 2:15 pm
Conditioning the DELETE is possible, but I'm not sure what condition you want. Can you be a bit more specific? Also, when you say that it doesn't work...
December 30, 2004 at 2:09 pm
Viewing 15 posts - 13,546 through 13,560 (of 13,841 total)