Viewing 15 posts - 46 through 60 (of 100 total)
I may be over-simplfying the issue- so with that said, why not remove the user's, or role's, access to the specific db itself? And if you need to turn that ability...
January 5, 2005 at 11:15 am
Can you show some of the sp? That would help.
That way you can get some help on how to pass the logic: select max(effective_date) where emply_status='A' to it. I think...
January 4, 2005 at 3:01 pm
My thought process was this:
Here is your returned number 15,345.00 which is a converted money datatype. The round won't work because its not a numeric datatype and once you convert...
January 4, 2005 at 11:15 am
Here goes:
select cast(datepart(month,getdate())as varchar)+'/'+cast(datepart(day,getdate())as varchar)+'/'+cast(datepart(year,getdate())as varchar)
January 4, 2005 at 11:05 am
Not sure on your exact details, but I would look into using a cursor if you're trying to work with a selected record set, one line item at a time.
BOL...
January 4, 2005 at 11:02 am
The getdate() function will display date and time. For example 1/4/2005 10:40:00.00, so when you run the query with the >= the current day (1/4/05) will be excluded. You will...
January 4, 2005 at 10:51 am
I got an error with the round: Error converting data type varchar to float.
I hacked some code together that seems to work:
SELECT substring(convert(varchar,cast(sum([column]) as money),1),1,charindex('.',convert(varchar,cast(sum([column]) as money),1))-1)
from
..not sure about...
January 4, 2005 at 10:43 am
There are two ways.
You can manage by individual user and by role that you construct by db. For this example I'll do it by user. Go to the user under...
January 4, 2005 at 9:50 am
sp_changeobjectowner [ @objname = ] 'object' , [ @newowner = ] 'owner'
hope this helps.
January 4, 2005 at 9:44 am
You'll need to register the server name. Open Enterprise Mgr and right click Microsoft SQL Servers. You'll have the option to register a new group or server registration. In your...
January 3, 2005 at 1:52 pm
I got this to work by building the index on the 1st select pass and commenting out the 2nd (and other union all passes). I then uncommented out the Sql...
January 3, 2005 at 1:17 pm
use master
declare @name varchar(50)
declare @sqlscript varchar(2000)
declare name_cursor CURSOR FOR (select [name] into #temp from syslogins where name like '[Domain Name]%')
open name_cursor
FETCH NEXT FROM name_Cursor into @name
WHILE @@FETCH_STATUS = 0
BEGIN
set @sqlscript='EXEC...
December 29, 2004 at 11:23 am
I would use a where exists (or not exists) statement.
Select [column] from
a
where exists (select * from
b where a.id=b.id)
December 28, 2004 at 1:14 pm
Read up BOL for correct syntax and/or other needed arguments, but you'll need Restore with move.
This example restores a full database and transaction log...
December 21, 2004 at 10:46 am
Viewing 15 posts - 46 through 60 (of 100 total)