Viewing 15 posts - 11,236 through 11,250 (of 15,381 total)
lokeshvij (7/24/2012)
July 24, 2012 at 10:17 am
Hi and welcome to SSC. It seems you have gotten some good suggestions at finding a solution. You may be wondering why nobody responded with some sql for you. That...
July 24, 2012 at 10:04 am
Ajdba (7/24/2012)
ThanksAlso, how can I create an index on a computed column such as " incident_year"
Thanks
http://msdn.microsoft.com/en-us/library/ms189292.aspx
Don't forget what I said in your other thread about SARGability of your query....
July 24, 2012 at 8:41 am
Ajdba (7/24/2012)
Yes, I need to ; because I am modifying the existing procedure where it written in dynamic sql
Just because it was written that way originally does not mean it...
July 24, 2012 at 8:32 am
Ajdba (7/24/2012)
Sorry, I meant to say I need to know how can prevent from sql injection
I agree 100% with Chris. The easiest way to prevent sql injection in this is...
July 24, 2012 at 8:31 am
There are a couple of issue with this code. First is nonSARGable. You are doing date conversion functions in your where clause so you will be stuck with index scans.
Something...
July 24, 2012 at 8:03 am
This sounds a job for SSIS. No sql script is going to be very efficient at doing that sort of thing.
Here is one of thousands of places to get started....
July 24, 2012 at 7:49 am
raghuldrag (7/24/2012)
prev_colsing_bal =(
...
July 24, 2012 at 7:29 am
I think you should take a look at this article. http://www.sqlservercentral.com/articles/T-SQL/71550/%5B/url%5D
It seems to be exactly what you are looking for.
July 23, 2012 at 3:21 pm
seshu2all (7/23/2012)
From MSDN, what i could see is to grant permissions to all the views & functions separately. So, your query would help me generating a batch to execute...
July 23, 2012 at 2:53 pm
Jan Van der Eecken (7/23/2012)
surely you meant
declare @MyTest int = 436
select * from Tally where N < @MyTest
select * from Tally where @MyTest > N --identical but makes me...
July 23, 2012 at 2:37 pm
If you want some help you have to help us. Please provide enough information to give someone a chance at answering. We don't have ddl, sample data, desired output or...
July 23, 2012 at 2:14 pm
To add to Capn's response, the following script can be tweaked to generate the sql you need.
declare @login VARCHAR(30) = 'UserID'
SELECT 'Grant View Definition ON ' + schema_name(schema_id) + '.'...
July 23, 2012 at 2:12 pm
sivag (7/23/2012)
plz tel me what are the requirement u need from me
We don't even know what the question is yet. You talk about making 1 table into 5. We don't...
July 23, 2012 at 1:41 pm
weston_086 (7/23/2012)
July 23, 2012 at 1:35 pm
Viewing 15 posts - 11,236 through 11,250 (of 15,381 total)