Viewing 15 posts - 2,161 through 2,175 (of 7,191 total)
Grant Fritchey (11/30/2016)
November 30, 2016 at 7:48 am
Grant Fritchey (11/30/2016)
I don't see any protection against SQL injection with this approach. I'd be a bit cautious about it. You don't want to meet Bobby Tables[/url].
There's no user input...
November 30, 2016 at 7:09 am
Yes, in most cases replacing loops with set-based code is a good thing. There's nothing wrong with your code as written. You can also write it something like...
November 30, 2016 at 5:53 am
Your original request was for comments from those who have encountered this problem before. I haven't, but I'd say all you need to do is make any necessary changes...
November 30, 2016 at 4:37 am
mjh 45389 (11/30/2016)
I have now been asked to implement this
What have you been asked to do - fix the incorrect data, or prevent any further incorrect data from getting in...
November 30, 2016 at 4:02 am
I would say no, although it does, of course, depend on what your loop is actually doing. If you use a correctly configured cursor then the result set through...
November 30, 2016 at 2:59 am
The best way to be sure is to test it, but I think the answer is no - you can only restore in one direction, regardless of compatibility level.
John
November 29, 2016 at 8:15 am
Isn't it as simple as this?
SELECT DISTINCT
MAX(TheDate) OVER(PARTITION BY YEAR(MyDate), MONTH(MyDate)) AS LastBizofMonth
,MyDay
FROM MyTable
WHERE MyDay NOT IN ('Saturday', 'Sunday')
By the way, please don't double-post.
John
November 29, 2016 at 5:57 am
Joe's solution involves connecting to each instance on the server individually. You may be happy with that, or you might prefer to connect to one of them and use...
November 29, 2016 at 5:45 am
Nicole
SQL Server 2016 Developer Edition is now free. As its name suggests, though, it's not for use in a production environment.
As for migration, if white papers exist, they'll be...
November 28, 2016 at 6:00 am
The error message does state that the problem is in the TABLE HINT clause, so it's curious that changing the actual statement makes it go away. What is MVXJDTA.MITALO...
November 28, 2016 at 2:32 am
tonytohme (11/25/2016)
I have the following table:
ID bigint,
Name varchar(50),
Address varchar(250),
RecDate smalldatetime,
PurPrice decimal(7,2),
PaidBy varchar(50)
I am trying to come up with a select statement that will group the results by ID and sums...
November 25, 2016 at 7:50 am
jean_chr_thiel (11/25/2016)
I found out the problem is with the (NOLOCK) in @stmt.
It looks to me as if the problem is with the TABLE HINT clause in the @hints parameter. ...
November 25, 2016 at 4:56 am
The reason the fragmentation level is so high is merely academic. For a 15-page index, it really doesn't matter. As for the other numbers you mentioned, I can't...
November 25, 2016 at 4:19 am
For small indexes, rebuilding or reorganising won't make any difference to fragmentation levels. Because of the size of such indexes, the fragmentation level has little or no impact on...
November 25, 2016 at 2:28 am
Viewing 15 posts - 2,161 through 2,175 (of 7,191 total)