Viewing 15 posts - 16 through 30 (of 30 total)
Try looking at sys.dm_db_index_usage_stats
Although a word of warning - although an index may not be used 'frequently', it doesnt mean that it's not valid!!
Do you have the data model of...
December 15, 2011 at 2:30 am
Is there an error message? Are there active connections to the db?
December 14, 2011 at 8:10 am
Open each of the script tasks individually, and right click - build them... Do they build successfully?
December 14, 2011 at 8:05 am
There are various things you can do to monitor what is happening on your database, and give yourself enough information to roll back mistakes.
Try looking into:
Change Data Capture (CDC)
December 9, 2011 at 6:50 am
Restore the backup to a seperate database, identify the rows which were updated incorrectly, and write a query to reverse the action.
December 9, 2011 at 6:45 am
To be honest, I'm not sure you'll get the answer you're looking for here (i.e. Do steps x, y and z and you will magically have your original data back).
As...
December 9, 2011 at 6:39 am
Which account are you using to run the package? Does it have permissions on both dbs?
December 5, 2011 at 6:58 am
I'd probably create a function to do this, and use this to do the conversion.
Create function dbo.udf_StuffString
(@Value float)
Returns Varchar(12)
as
Begin
Declare @Multiple int,
@Output varchar(12)
Set@Multiple = casewhenCHARINDEX('.',reverse(cast(@Value as varchar(12)))) > 0
thenPOWER(10, ...
December 2, 2011 at 7:24 am
And to handle the variable number of decimal places, you could try:
select POWER(10, cast(CHARINDEX('.',reverse(cast(@Amount as varchar(10))))-1 as int))
December 2, 2011 at 6:58 am
Try somethign like this:
declare @Amount as varchar(10)
select @Amount = cast(cast(20.55 * 100 as int) as varchar(10))
SELECT STUFF(@Amount, 1, 0, REPLICATE('0', 12 - LEN(@Amount)))
December 2, 2011 at 6:45 am
Could you provide some sample data?
It sounds like you're either returning duplicate records, or your logic doesn't provide mutually exclusive sets.
November 21, 2011 at 8:47 am
The single quotes are only closing the SQL string - they're not identifying the string you're passing to it as a string.
WHERE '+@FieldName + ' = ' +...
September 22, 2011 at 4:51 am
I'd take a look at SSIS (MS Sql Server Intergration Services). With a script task for the zip/unzip of files, you should be able to easily automate your requirement.
Try
September 21, 2011 at 1:07 am
What data types are you planning on inserting into the table? If you know that, you should be able to answer your own question 🙂
If you're allowing users to input...
September 20, 2011 at 9:10 am
Viewing 15 posts - 16 through 30 (of 30 total)