ScriptUtils.ASPForm errors - object

i am trying to upload big file to the database SQL using the sample code from
Upload - large files to MS SQL Server using a HexString property and UPDATETEXT SQL statement but when i run the code i am getting the following error
Server object error 'ASP 0177 : 800401f3'
Server.CreateObject Failed
which is in
Set Form = Server.CreateObject("ScriptUtils.ASPForm")
from where i can get this dll for free to be able to register it?
or is there any other solution ?
thank you

Related

Azure SSIS IR - working with files in the temp folder of the IR node

I have setup a custom SSIS IR, however I'm having problems reading files from the current working directory or temp folder on the IR node
https://learn.microsoft.com/en-us/sql/integration-services/lift-shift/ssis-azure-files-file-shares?view=sql-server-2017
The work flow of my test package is
Load compressed file to Azure file share
Unzip file
Modify file, saving it the current working group folder on the IR node (this path .\testfile.json)
Load file to Azure SQL DB
The last step is where I'm having issues, I receive the below error message. Maybe looks to be related to security, but no idea how to access the SSIS IR node to check this.
Execute SQL Task:Error: Executing the query "DECLARE #request
VARCHAR(MAX) SELECT #request =..." failed with the following error:
"Cannot bulk load because the file ".\testfile.json" could not be
opened. Operating system error code (null).". Possible failure
reasons: Problems with the query, "ResultSet" property not set
correctly, parameters not set correctly, or connection not established
correctly.
How can I fix this issue?
From just the error message, looks like you're using BULK INSERT in Execute SQL Task to load data into Azure SQL DB. BULK INSERT into Azure SQL DB can only work from Azure Storage Blob, but not from file systems/SSIS IR nodes. To load data from the current working directory of SSIS IR nodes into Azure SQL DB, you can use a Data Flow with Flat File Source and ADO.NET Destination.

Invalid object name 'App.fnSplit' with node.js and tedious

I'm using tedious to connect to SQL Server and run queries from node.js. One of my queries includes the following: FROM App.fnSplit ('111,222,333,444', ',').
But it's throwing the following error: Invalid object name 'App.fnSplit'.
This works in the Java application that I'm converting to Node.js and also works from RazorSQL client. Is there any library that I need to include to get this working? Thanks in advance.

Issue after deploying SSRS report that pulls data from an Excel data source to the Report Server

I am trying to deploy an SSRS report that is using an Excel data source. This report shows up fine on BIDS when I preview it.
I then tried to deploy it to the Report Server and that worked fine except that when I click on the report I get the following error:
An error has occurred during report processing. (rsProcessingAborted)
Cannot create a connection to data source 'Excel_64'. (rsErrorOpeningConnection)
ERROR [IM006] [Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr failed ERROR [01S00] [Microsoft][ODBC Microsoft Access Driver]Invalid connection string attribute Trusted_Connection ERROR [01S00] [Microsoft][ODBC Microsoft Access Driver]Invalid connection string attribute Trusted_Connection ERROR [01S00] [Microsoft][ODBC Microsoft Access Driver]Invalid connection string attribute Trusted_Connection ERROR [01S00] [Microsoft][ODBC Microsoft Access Driver]Invalid connection string attribute Trusted_Connection
I have looked online and tried a bunch of different solutions ranging from sharing the workbook, trying to input Windows Credentials in the report server in the "Credentials stored securely in the report server" field but that also gave me the same error.
I would really appreciate any help in resolving this.
Thank you.
Did you try removing the Trusted_Connection attribute from the connection string?
Does that server have all necessary components installed to retrieve data from a Excel sheet? I seem to remember that in older versions you needed Data Access Componets(DACS) or Excel itself installed on the server from which the Excelfile is read.
SSRS must Excel be installed on Reporting server to use Excel as a Data SOURCE?
But I think you would be better of with the solution proposed in the link below.
It suggests importing the data into a SQL table using a scheduled SSIS package.
SSRS: Error while querying data from an Excel file (through ODBC)

Loading Excel sources to sql server table issues when I close my Excel sources

While I am trying to load Excel sources data into a SQL Server Table, it is throwing the following error...but when I opened all the sources that I am going to load into the destination then my SSIS package is successfully loading to destination. So here Execution fails when all my sources if not opened. Can any one of you resolve my problem?
TITLE: Package Validation Error
Package Validation Error
ADDITIONAL INFORMATION:
Error at Data Flow Task [Excel Source [1]]: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER.
The AcquireConnection method call to the connection manager "Excel Connection Manager" failed with error code 0xC0202009.
;There may be error messages posted before this with more information on why the AcquireConnection method call failed.Error at Data Flow Task [SSIS.Pipeline]:
component "Excel Source" (1) failed validation and returned error code 0xC020801C.Error at Data Flow Task [SSIS.Pipeline]:
One or more component failed validation.Error at Data Flow Task:
There were errors during task validation:
Error at Eco P and L [Connection manager "Excel Connection Manager"]:
SSIS Error Code DTS_E_OLEDBERROR. ;
An OLE DB error has occurred.
Error code: 0x80004005.
An OLE DB record is available. ;
Source: "Microsoft JET Database Engine" ;
Hresult: 0x80004005 ;
Description: "Could not decrypt file.".;
(Microsoft.DataTransformationServices.VsIntegration)
I got this error too. It turns out my excel file was protected. If I go to the "Review" tab and click on "Unprotect Sheet", then I could import the excel file.
From the error snapshot it clear that either file is encrypted or delay validation =false.
So please make sure that excel file should not be encrypted and Set Delay Validation= True .
I think you will not find this error again .

Error exporting SQL Server 2008 R2 database to Excel 2007

I was trying to export SQL Server 2008 R2 database to Excel 2007. I used the export wizard in SQL Server Management Studio. I used a query to export some columns of a table. I checked the query (saw the result of parsing it) and it was good. But on the REVIEW DATA TYPE MAPPING it showed error notifications. It was converting varchar to LongText. But when I executed the package it failed to run showing fail status for steps like prepare for execute,pre-execute,execute . the error message is like this
Error 0xc002f210: Preparation SQL Task 1: Executing the query "CREATE TABLE Query (
id Long, sku LongText..." failed with the following error: "Unexpected error from external database driver (1309).". Possible failure
reasons: Problems with the query, "ResultSet" property not set
correctly, parameters not set correctly, or connection not established
correctly.
(SQL Server Import and Export Wizard)
Someone has a clue whats wrong?
Not an ideal answer (I have no idea what the cause of this problem is) but I was able to bypass this error by saving the excel sheet to 97-03 format and extracting to that.

Resources