|
Thread: s
-
Jun 23rd, 2004, 10:40 AM
#1
Thread Starter
Fanatic Member
s
What is wrong with this code please?
The error is : "Line 1: Incorrect syntax near 'USP_StatusUnzipFile'."
Thanks
public void UnzipFile(string strFilename)
{
try
{
string strSQL = "USP_StatusUnzipFile";
string strConn = objects.clsConnect.ConnectionStringLocal;
SqlCommand oCmd;
SqlConnection oCon;
oCon = new SqlConnection(strConn);
oCmd = new SqlCommand(strSQL, oCon);
oCmd.Parameters.Add("@Filename", SqlDbType.VarChar, 1000);
oCmd.Parameters["@Filename"].Value = strFilename;
oCon.Open();
oCmd.ExecuteNonQuery();
oCon.Close();
}
catch (Exception ex)
{
throw ex;
}
}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|