Viewing 15 posts - 136 through 150 (of 190 total)
If it is SQL Server Express Edition, the TCP/IP connection type may not be turned on by default. To check, go to Start > All Programs > find the...
February 29, 2012 at 6:38 am
To accomplish initial requirement, try this:
USE dbname
GO
SELECT 'GRANT EXECUTE ON ' + SCH.name + '.' + PRC.name + ' TO [someuser]' AS Permission
FROM sys.schemas AS SCH
INNER JOIN sys.procedures...
February 15, 2012 at 1:37 pm
I have posted this previously to this website, but I've made a few enhancements to it, so I'll post it again. This is my script to run a Security...
February 15, 2012 at 7:45 am
For each location, it is usually once a year. They are not on-going, in the sense of college courses or continuing education courses, that may meet daily or weekly....
February 9, 2012 at 6:15 am
Yes, I've been to several. They are very informative and a lot of fun. I spoke at one in 2010. That was my first major speaking engagement....
February 8, 2012 at 6:24 am
Check out http://www.sqlsaturday.com. SQLSaturday is a whole day (obviously, on a Saturday) of free training in SQL Server, and is held in many cities across the world....
February 7, 2012 at 12:54 pm
No, that is correct. I create an AppReader role, and grant SELECT to each table to that role.
For the AppUser role, I grant INSERT and UPDATE to each table...
January 26, 2012 at 1:05 pm
Here's one way to do it. Try this code and modify to fit your needs.
CREATE Table DimDate
(DateKeyintNOT NULL
CONSTRAINT PK_DimDate_On_DateKey PRIMARY KEY CLUSTERED,
DateToUseDatetimeNULL,
CalYrMthintNULL,
CalYrintNULL,
CalMthintNULL,
CalDayintNULL,
EngDayOfWkvarchar(10)NULL,
DayNumOfWkintNULL,
DayNumOfYrintNULL,
WeekNumOfYrintNULL,
EngMonthNamevarchar(12)NULL,
CalQtrintNULL,
CalYrQtrintNULL,
CalYrHalfintNULL,
CalYrSemesterintNULL,
FiscalQtrintNULL,
FiscalYrintNULL,
FiscalYrQtrintNULL,
FiscalYrHalfintNULL,
FiscalSemesterintNULL
)
GO
CREATE NONCLUSTERED INDEX NI_DimDate_on_DateToUse ON DimDate(DateToUse)
GO
CREATE NONCLUSTERED INDEX...
January 26, 2012 at 7:13 am
The page size is 8k, because that is the maximum size of a record in SQL Server (8096 I believe). However, when data is read, it is read in...
January 26, 2012 at 6:48 am
What is a schema-wide permissions?
GRANT UPDATE ON SCHEMA Production
This is a schema-wide permission. You have granted update on all tables in this schema to someone (need a "TO...
January 23, 2012 at 8:47 am
You are wanting to do schema-wide permissions? If that is true, it is not to the best practice of "least-permissions", only giving them permissions on the objects they need....
January 20, 2012 at 6:18 am
Don't know if this will help, but see this link for a script I wrote for creating an instance audit documentation script. If you set the @outputtype variable =...
January 19, 2012 at 7:00 am
In case this helps anyone, here is how I do in-SPROC logging. In addition to the normal stuff, I also log the input parameter values that are sent to...
January 11, 2012 at 12:51 pm
Here is the url to a script I wrote to do a full instance security audit. It gives all permissions for each database.
http://www.sqlservercentral.com/Forums/Topic1226870-359-1.aspx#bm1230153
Maybe it will help.
January 9, 2012 at 7:09 am
I had the same issue recently, so I wrote the following script. It assumes the first column is the PK, so you can change the logic if that is...
January 4, 2012 at 9:11 am
Viewing 15 posts - 136 through 150 (of 190 total)