Viewing 15 posts - 13,081 through 13,095 (of 13,469 total)
In our shop, we have an application that uses either a SQL Server or Oracle database. As a result, we have lots of dev servers with SQL or oracle, or dev...
May 9, 2006 at 11:56 am
i'm under the impression that SQL7 must be installed first as a default instance.
after that is installed, you could install either/both SQL2000 and SQL 20005 as named instances on the...
May 5, 2006 at 10:50 pm
i think any error raised with a level above 16 would fail, so in any script, you could simply add this line:
RAISERROR ('Testing to see if a job fails for...
May 5, 2006 at 9:06 am
it also looks like the variables required are available in the third function; in that case it might look more like:
FROM (SELECT * FROM dbo.
May 4, 2006 at 10:28 am
the problem is your FROM statements in function 3:
FROM dbo.fnWTRCenPrtDivData INNER JOIN
dbo
.fnWTRTerrierData ON fnWTRCenPrtDivData.
May 4, 2006 at 10:19 am
create function ufn_test(
@name1 varchar(30)='Walmart',
@name2 varchar(30)='cookies')
returns varchar(255)
BEGIN
return 'I go to ' + @name1 + ' to buy ' + @name2
END
GO
SET NOCOUNT ON
select dbo.ufn_test (default,default)
select dbo.ufn_test ('Sears',default)
select dbo.ufn_test ('Sears','wrenches')
May 4, 2006 at 8:47 am
typically you get the results of a function like this:
select dbo.fnWTRCenPrtDivData(param1,param2)
if any of the parameters are supposedly optional, where they assume a value, you need to use the...
May 4, 2006 at 8:41 am
there's a few issues here:
a stored proc isn't going to return a set or records from a different database unless you explicitly refer to the database:
select * from master.dbo.cities
if itis...
May 4, 2006 at 8:38 am
almost, i replaced every </TD> with </TD> as there are a few places where the cells have no contents; they render as <TD></TD>, so they don't look right in the...
May 4, 2006 at 8:22 am
I found that to be a great script as well; the only change I made was adding a to the closing </TD> tag so that cells didn't appear wierd...
May 4, 2006 at 6:12 am
could you add a check constraint that says column2 must be less than or equal to column 1?
that would prevent 3,2 or 2,1 from inserting.
that way you enforce the order...
May 3, 2006 at 6:16 am
isn't this kind of situation used when you have multiple locations using the identical database, and you need to merge the databases back together at some point? also, i thought...
May 3, 2006 at 6:07 am
i read the question differently: can you execute sp_whatever, that exists on server1, on server 2.
my answer is that you must copy the proc to the other server. I think...
April 25, 2006 at 6:58 am
i THINK this sql will list all tables defined row size: the LENGTH column in syscolumns has the #of bytes used for the column definition; a varchar(30) has 30, nvarchar(30)...
April 25, 2006 at 6:46 am
if you try to install the enterprise or standard versions of SQL server on your machine, it will automatically "dummy itself down" to the desktop version / MSDE.
the full verison,...
April 25, 2006 at 6:30 am
Viewing 15 posts - 13,081 through 13,095 (of 13,469 total)