Viewing 15 posts - 7,861 through 7,875 (of 13,460 total)
well adding a user and granting permissions are a three part process.
first you really needed to already have a ROLE in your specific database that has the permissions you want...
March 27, 2011 at 6:07 am
yes, there is a built in stored procedure that will give the hierarchy of the schema based on foreign keys and dependencies.
this is what i typically use:
...
March 27, 2011 at 5:55 am
your if statement stuff would work, absolutely;
what i was implying, is you could possibly rebuild the synonym every time, something like this:
--Usage EXEC GetData 'SERVERNAME'
Create Procedure GetData(@WhichServer varchar(30))
AS
BEGIN --PROC
...
March 25, 2011 at 1:58 pm
whole (3/25/2011)
i would like to create a synonym for all my sq server instances. which i can use them in my procedure to reference.
but my question is...
March 25, 2011 at 1:00 pm
I'm sure dan is right...you can only test for a single value in the IIF condition, so you need nested IIf's to do the OR:
=iif(Parameters!PUBLICATION.value = 304,round(Fields!LASTWEEK.Value/5),IIF(Parameters!PUBLICATION.value = 305,round(Fields!LASTWEEK.Value/5),round(Fields!LASTWEEK.Value)
March 25, 2011 at 12:50 pm
very similar to your other thread; not sure why you want to dynamically delete stuff, but here's an ugly example.
right ow, this is only printing the commands it might execute;...
March 25, 2011 at 12:33 pm
diboy79 (3/25/2011)
every account has been changed by adding '212' in the end of account number.ex:
11111 ----> 11111212
22222 ---->...
March 25, 2011 at 9:01 am
i thought avoiding the use of 1433 was to avoid brute force attacks to discover passwords....script kiddies or worse.
March 25, 2011 at 8:56 am
it looks like your procedure is recursively calling itself, correct? you might be hitting the max number of nesting levels or something;
I'm not sure what the proc is doing exactly...
March 25, 2011 at 8:38 am
dioscoredes (3/25/2011)
inserting a single row into a small table repeated
maybe 100 times. The proc quits silently after say 20
inserts. Tinkering shows any DML causes the premature...
March 25, 2011 at 8:01 am
what is the proc doing? if the proc is accessing anything outside of the database, it might be stopping/erroring due to permissions..you mentiond something about sqlcmd to fix stuff;
maybe when...
March 25, 2011 at 7:35 am
ok, here's a crappy example schema i slapped together, just as an example.
if you step thru to the end, you'll see that the view at the end will always have...
March 25, 2011 at 7:25 am
SQL handles concurrency very well and automatically; it automatically locks a row of data for the milliseconds it takes to update the row, releasing the row as soon as the...
March 25, 2011 at 5:46 am
And if the database is read only, you'll have to change it, change the collation, then change it back to read only again
Right click Dtabase....Properties
Select "Options" and scroll to the...
March 24, 2011 at 7:23 am
malleswarareddy_m (3/24/2011)
but it is not supporting to write the code for recursive ctes .
for example...
March 24, 2011 at 6:43 am
Viewing 15 posts - 7,861 through 7,875 (of 13,460 total)