Viewing 15 posts - 9,241 through 9,255 (of 13,469 total)
DBCC SHRINKFILE is granted to the roles sysadmin and db_owner
to remove permissions from a user, you'd most likely take away the db_owner role from them.
there is no other way...
June 16, 2010 at 11:44 am
it might be more clear if it looked like this...the zero is the first date in SQL:
select DATEADD(wk, DATEDIFF(wk,'19000101 00:00:00.000',getdate()), '19000101 00:00:00.000')
--is the same as
select DATEADD(wk, DATEDIFF(wk,0,getdate()), '19000101 00:00:00.000')
--is the...
June 16, 2010 at 8:24 am
Dan this is one of the coolest things to use once you get your head wrapped around it.
if you select DATEDIFF(wk,0,getdate())
this will return week '5763' , which is the #...
June 16, 2010 at 8:15 am
you can use the DATEADD and DATEDIFF function to determine the monday of the current week.
--Monday of the Current Week
select DATEADD(wk, DATEDIFF(wk,0,getdate()), 0)
so you want to avoid converting a datetime...
June 16, 2010 at 7:45 am
Steve i made an ITVF based on your example, but i added a bit more to it;
i was thinking if i allow periods in the data, i need to check...
June 16, 2010 at 7:35 am
you probably heard wrong, i think.
a SSRSreport is saved to a .rdl file(RDL=report definition language?), which is xml for the report's structure,design,location of all it's objects, etc.
that is what your...
June 16, 2010 at 5:24 am
calvo's example is exactly correct, i think; the EXEC() statement is stand alone, and does not affect the session/window it is a part of.
so to do what you want, you...
June 15, 2010 at 11:01 am
this will give you the results featuring row_number(); use the inner portion of the query to see the raw results, the outer query returns just the duplicate items:
productname,colorcode,categoryname,brandname,colorname
SELECT * FROM...
June 15, 2010 at 9:22 am
will you be providing any details? For any meaningful answer we need the CREATE TABLE definitions of both tables, and which "value" (column) triggers some change to be propigated to...
June 15, 2010 at 8:09 am
i think it's an html thing, if you put a space or an html non-breaking space, i think you'll fix it:
=" " & IIF(Fields!occ_period_id.Value = Parameters!spid.Value,"Red",IIF(Fields!show_date.Value = "Grand total" OR...
June 15, 2010 at 7:50 am
i think you can generate the ALTER TABLE ALTER COLUMN statements with this:
select
schema_name(objz.schema_id) as schemaname,
objz.name as tablename,
colz.name as columnname,
colz.max_length,
'ALTER...
June 15, 2010 at 7:35 am
well, the command line program osql can give you a list of all SQL servers that answer on the network, whether they are SQLExpress versions or not would require running...
June 15, 2010 at 6:09 am
ok rich; I'm putting a link to CLR Database Project and it's solution; after unzipping it and opening it in the BIDS version of VS2008, if you go to the...
June 14, 2010 at 5:48 pm
that doesn't sound right...if you can do File>>New Project, is there a template for Database Project?
I know you can download the VS Database Template from MS, and there is instructions...
June 14, 2010 at 1:07 pm
well, i've done the basic setup lots of differnet ways, from providing a database for the dba to attach, to providing a script for the dba to run, to doing...
June 14, 2010 at 7:28 am
Viewing 15 posts - 9,241 through 9,255 (of 13,469 total)