Viewing 15 posts - 13,546 through 13,560 (of 13,838 total)
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
Hi Travis, this must be turning into a real pain in the you-know-what Just had a quick read through your code and...
December 29, 2004 at 9:02 pm
If you perform a truncate on the temporary table every week before you perform the import (assuming that you do not wish to keep a history of what has been...
December 29, 2004 at 4:46 pm
One way of approaching this is to import the files into a new intermediate table (which has no constraints) and to use standard SQL on this table to perform validation...
December 29, 2004 at 5:41 am
Viewing 15 posts - 13,546 through 13,560 (of 13,838 total)