Viewing 15 posts - 4,921 through 4,935 (of 26,490 total)
sqlfriends (6/26/2015)
I know login is at instance level, user is in the database level.
Let us remove the code about checking exists of the...
June 26, 2015 at 5:30 pm
sqlfriends (6/26/2015)
Yes, I do need to check if the user exists before I create the user for the login.
Even so, I think the create user statement should error out,...
June 26, 2015 at 4:23 pm
sqlfriends (6/26/2015)
I am working on a windows user.
I noticed when I create a user in a database for a login, even that login...
June 26, 2015 at 3:22 pm
sgmunson (6/26/2015)
alex.sqldba (6/26/2015)
Hi Guys,If I granted execute right to Schema1 for sp MyProc;
And MyProc updates something in Schema2
Will it work? Or will it fail as its a different Schema?
Cheers
Alex
Time for...
June 26, 2015 at 2:40 pm
You need to do something like this:
select * from #TABLE1
where ID in (select Item from dbo.DelimitedSplit8K(@newID,',');
The code for dbo.DelimitedSplit8K is attached.
June 26, 2015 at 9:47 am
harris32 (6/25/2015)
Sorry. I can't post the actual exec plan as it will have the table names.
Okay. I can't really help looking at the pictures even though they are pretty.
June 25, 2015 at 3:22 pm
What would really help is the actual execution plan as a *.sqlplan file instead of pictures of the execution plan.
June 25, 2015 at 3:00 pm
Used properly dynamic SQL is a viable tool for development. The key here is "used properly."
June 25, 2015 at 10:22 am
emmchild (6/25/2015)
June 25, 2015 at 10:17 am
apogoreliy (6/25/2015)
June 25, 2015 at 9:02 am
mw112009 (6/24/2015)
cross apply (select top 1 case_num from #cases c where convert(char(8),c.case_date,112) <= convert(char(8),r.exam_date,112)...
June 24, 2015 at 5:53 pm
Sean Lange (6/24/2015)
mw112009 (6/24/2015)
--Has data when the patient came to hospital
create table...
June 24, 2015 at 3:14 pm
mw112009 (6/23/2015)
as table
(
AIMS_VALUE_NUMERIC numeric(19,2),
bp_type VARCHAR(4),
Dt datetime ,
ID int IDENTITY(1,1),
MBP numeric(19,2),
MPOG_PHYSIOLOGIC_CONCEPT_ID VARCHAR(10)
UNIQUE CLUSTERED (MPOG_PHYSIOLOGIC_CONCEPT_ID,Dt)
)
IT works in SQL Sevrer...
June 23, 2015 at 3:28 pm
emmchild (6/23/2015)
June 23, 2015 at 3:21 pm
chrisn-585491 (6/23/2015)
This isn't about RavenDB over SQL Server. It's about choosing any technology based on the staff and skills you have, or can get. Every technology has some based of...
June 23, 2015 at 12:08 pm
Viewing 15 posts - 4,921 through 4,935 (of 26,490 total)