Viewing 15 posts - 16 through 30 (of 32 total)
Thanks GSquared and ALZDBA. That was a perfect solution.
I found a way to do in VB.NET also 🙂
CStr(FieldName.TrimStart(CChar("0"))).PadRight(15)
March 13, 2008 at 2:07 pm
Try this:
Imports System
Imports System.IO
Imports System.Data
Imports System.Math
Imports Microsoft.SqlServer.Dts.Runtime
Public Class ScriptMain
Public Sub Main()
'
...
March 11, 2008 at 1:20 pm
Use Row Sampling task in data flow transformation and specify number of records you wanted.
March 11, 2008 at 10:25 am
Thanks Jim. Thats what I thought.
March 11, 2008 at 7:35 am
Did you copy the excel file you created to remote server?
what is the error message you got?
March 6, 2008 at 12:49 pm
I'm trying to delete few records in excel file using execute SQL task with excel as connection manager. I'm able to update excel file but not delete records.
March 6, 2008 at 8:45 am
I think you want to capture number of days between 1900/01/01 and another date which is in your table. you can use datediff function.
datediff(dd,startdate,enddate)
for example -
select datediff(dd,'1900/01/01','2008/03/05') gives you...
March 6, 2008 at 3:43 am
I tried to delete records in excel using execute sql task and I recieved following error -
[Execute SQL Task] Error: Executing the query " delete from products where ...
March 5, 2008 at 8:00 pm
I had same issue before. Looks like getting error column is not at all easy. Read this for more:
http://www.sqlservercentral.com/Forums/Topic456102-148-1.aspx#bm457730
March 3, 2008 at 9:02 am
you can use execute sql task in the control flow to determine count of records of your query, and store this value in a variable (countofRecords).
In the precedence constraints that...
February 29, 2008 at 6:32 pm
I can't find any option to make sql dynamic in data reader. The option I can think of is to use OLE DB Source pass sql command from variable.
February 29, 2008 at 2:18 pm
We deployed SSIS packages on a 32-bit. Our initial plan was to deploy on 64-bit from which we backed out because all the developers were developing and compiling code on...
February 28, 2008 at 4:24 pm
Make sure you compile all SSIS packages converted from DTS packages on a 64-bit machine. Do you have Oracle sources?.
February 28, 2008 at 7:29 am
Master pasackage is another SSIS package with "execute package tasks". Each execute package tasks refers to a SSIS package.
So in master package, you can create precedence constraints to execute one...
February 26, 2008 at 11:42 am
Create a Master SSIS package. you can use exectue package tasks in the control flow to execute in the order required.Call the Master SSIS package using dtexec command.
February 26, 2008 at 11:19 am
Viewing 15 posts - 16 through 30 (of 32 total)