Viewing 15 posts - 13,066 through 13,080 (of 13,457 total)
from http://www.windowsitpro.com/Article/ArticleID/14025/14025.html
|
May 11, 2006 at 6:54 am
there's a difference between a primary key, which technically can span multiple columns, and a column that has the identity function on it to auto generate the next value of...
May 11, 2006 at 6:36 am
i didn't think actual database backups were labeled with a version... i thought only the server had an @@version, and the data was always backed up to an 8.00 version,...
May 10, 2006 at 3:37 pm
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
Viewing 15 posts - 13,066 through 13,080 (of 13,457 total)