Viewing 15 posts - 256 through 270 (of 596 total)
When you run a batch file, you are running it with cmd.exe, which supports a specific character set that is most likely different from the collation you are using with...
March 14, 2006 at 6:36 am
It may have to do with the fact that you are creating a view in database B that references tables in database A. Without seeing all the details, it tough...
March 1, 2006 at 5:51 am
Wow..this is a lot harder than I expected. Let's give it another try.
I think the problem is that when you run xp_cmdshell, the command processor also parses the line -...
February 28, 2006 at 12:39 pm
SQL Server 2000 Standard and Enterprise editions require a server operating system, so you cannot install either of those on Windows XP, for example. You'd have use the personal or developer...
February 28, 2006 at 8:34 am
Hmmmm. I just did some preliminary tests with sp_update_jobschedule, and it would not change the status of the job either way. Alternatively, you could access the enabled column directly:
DECLARE @myJob sysname
SET...
February 28, 2006 at 8:25 am
Unfortunately, it not simple. Check out this link: http://www.databasejournal.com/features/mssql/article.php/3500276
The link above uses the undocumented extended stored procedure xp_sqlagent_enum_jobs, so it's probably not recommended for a production system.
Another (brute force)...
February 28, 2006 at 7:00 am
The problem is again with @cols_To_Include: @cols_To_Include='Ipsil','Contra' is incorrect due to the quotation marks. What format does the sp_generate_inserts stored procedure expect for the @cols_To_Include parameter?
I would think it would be...
February 28, 2006 at 5:42 am
I'd do something like like this (remove the PRINT after you're satisfied that the format is correct):
DECLARE @cmd varchar(8000)
SET @cmd = 'osql -S. -E -dTest -Q "EXEC sp_generate_inserts...
February 27, 2006 at 7:08 am
A better design might start with something like this:
CREATE TABLE Contact
(
cid int IDENTITY(1,1) PRIMARY KEY
-- some contact info, whatever you are collecting
, clastname varchar(30)
, cfirstname...
February 24, 2006 at 6:27 am
Style 101 is mm/dd/yyyy
Style 103 is dd/mm/yyyy
Only one of these will work by default for any given server installation, unless the SET DATEFORMAT statement is used to override it.
My suggestion is...
February 23, 2006 at 6:53 am
Karl previously identified what is most likely your problem:
I ran the following code, which produced the output listed at the end of this post:
--DROP TABLE SiteBehaviour
--GO
CREATE...
February 21, 2006 at 7:35 am
Actually, SELECT Floor(DateDiff(dd, @DOB, GetDate())/365.25) fails for most dates that are one day behind (see February 20 example - today is currently 2006-02-21). But it is fast otherwise.
You could also...
February 21, 2006 at 6:40 am
Try:
DECLARE @bigInt decimal(38,0)
SET @bigint = 65536.0 * 65536 * 65536 * 65536
-- or
-- SET @bigint = Cast(65536 as Dec(38,0)) * 65536 * 65536 * 65536
PRINT @bigInt
February 21, 2006 at 6:14 am
Like Fred said, take out extra code. You've already moved the join condition to the WHERE clause. It should read:
SELECT wo.WORKTYPE, wo.WONUM, es.DOWNTIME, es.CHANGEDATE, wo.WOEQ9, wo.WOEQ2
FROM...
February 14, 2006 at 12:51 pm
Yes, you have to create a full-text catalog and populate it before using Contains(). You'd have to do something along these lines:
USE <your database>
EXEC sp_fulltext_database 'enable'
EXEC sp_fulltext_catalog '<your_FT_CatName>' , 'create'
EXEC...
February 10, 2006 at 8:15 am
Viewing 15 posts - 256 through 270 (of 596 total)