Viewing 15 posts - 196 through 210 (of 7,191 total)
Ah yes, that's probably why in the link I posted, they recommend not to make user-defined roles members of fixed roles!
John
January 24, 2020 at 4:54 pm
Johan
Yes, it is. The first result when I typed "SQL linked server" into a search engine provided confirmation.
John
January 24, 2020 at 4:21 pm
Is this a homework question? What have you already tried? It seems to me that you need a simple GROUP BY query.
John
January 24, 2020 at 4:18 pm
One disadvantage of using Developer Edition in a testing environment is if whatever you are testing or developing happens to use an Enterprise-only feature. You could get a nasty surprise...
January 24, 2020 at 4:15 pm
Sounds right to me. From the documentation:
Fixed-database roles are defined at the database level and exist in each database. Members of the db_owner database role can manage fixed-database role membership.
John
January 24, 2020 at 4:04 pm
If @EndStation is always greater than @BeginStation, then you can simplify like this. Note that I've also removed the NOTs and changed ANDs to ORs and >= to < and...
January 24, 2020 at 11:59 am
I think you'll need a few ORs in your join predicate. Based on your sample data, what results do you expect from your SELECT query?
Where does the data in the...
January 24, 2020 at 11:29 am
Just a shot in the dark, but is there already a database with the same name as the clone you're attempting to create?
John
January 24, 2020 at 9:54 am
I don't understand why you can't generate a table? Here's an outline to show how easy it is:
CREATE TABLE #Subscriptions (
cs_contactyominame <datatypename(nnn)>
,name <datatypename(nnn)>
,Status <datatypename(nnn)>
)
INSERT INTO #Subscriptions
VALUES
('Emil Salha',...
January 24, 2020 at 9:31 am
You need to create the temp table first, then use an INSERT...EXEC to insert the rows. That applies whether you use OPENROWSET or not. And don't forget to put those...
January 23, 2020 at 4:01 pm
Thank you John. I am wondering why should I specify my version of SQL Server or it should be the Database Name?
You don't need to specify the database name...
January 23, 2020 at 3:43 pm
OK, good. Did my suggestion work? Can I ask why you're using OPENROWSET instead of just running the EXEC statement?
By the way, I think you need to enclose your date...
January 23, 2020 at 3:39 pm
Try replacing "(local)" with ".". Is (local)\SQL2014 the same instance you're running this code on?
John
January 23, 2020 at 3:10 pm
Transactional replication would probably work as well as anything, so long as your table has a primary key constraint.
John
January 23, 2020 at 2:43 pm
Mark
That code works for the values you mentioned in your original post. Perhaps you have one or more values in the column that, for example, uses a comma for the...
January 23, 2020 at 12:48 pm
Viewing 15 posts - 196 through 210 (of 7,191 total)