Viewing 15 posts - 331 through 345 (of 13,469 total)
January 29, 2018 at 8:16 am
definitely, use something that will create a proper filename, and handle ending slashes
the below returns "C:\NewFolder\20172018"
$filename = "20172018"
$file= "C:\NewFolder"+$filename
you mosdt likely need the file and...
December 22, 2017 at 8:51 pm
the naming thing is caused by using the sp_rename command; there are a few questions of the day on the same issue.
when you use sp_rename on a view/procedure/function,...
December 20, 2017 at 6:04 pm
December 20, 2017 at 5:55 pm
can't you add a windows group a user, grant it db_datareader then set the database to read only?
then you can add the 1000 users to the user group, and...
December 3, 2017 at 6:01 am
it's a two step process;
you have to associate the files at windows, and then tell SSMS that you want to edit those extensions as if they were sql code.
create...
November 16, 2017 at 4:50 pm
October 30, 2017 at 7:13 am
October 18, 2017 at 8:17 am
i am under the impression that each Invoke-sql command opens a connection, does the work, and closes the connection.
so you need all the commands in a single script, and not individual, multiple...
October 14, 2017 at 1:53 am
the labs.
practicing them multiple times, line by line.
every one of them.
I've been teaching a class for our local SQL Server User Group that does nothing...
September 26, 2017 at 9:19 am
you should only have to cast the comparison with a collate statement;
this worked for me, does this help?
i used 128 for the length, since a object name...
September 19, 2017 at 1:36 pm
I am always so afraid of using a shot gun approach without definitive testing and eyeballing for correctness, because a find/replace could nail partial words /strings.
I would use either SSMS...
September 18, 2017 at 11:40 am
I would also suggest the SET NOCOUNT ON, that used to be a staple of my old classic ASP pages; I would bet that is what is affecting you.
you...
September 18, 2017 at 6:29 am
i would think getting rid of the trigger, and creating a simple TSQL job that runs every hour would be better and easier.
a script like this would do...
September 15, 2017 at 2:21 pm
gotcha, i think the issue is the cross database query call.
then normal individual who enters the data is not in the [msdb] SQLAgentOperatorRole or SQLAgentUserRole, which arethe roles...
September 15, 2017 at 12:44 pm
Viewing 15 posts - 331 through 345 (of 13,469 total)