DataSource Controls :: How To Write A Sql To Execute The File At Specific Time Sql Server Database
May 28, 2010how can i write a sql to execute the file at specific time sql server database.
View 3 Replieshow can i write a sql to execute the file at specific time sql server database.
View 3 RepliesI have created database .sql file for create schema with export database. (its .sql file size is 48.2 MB)
View 1 Repliesmy sp take long time to execute. Why that?alter PROCEDURE [dbo].[sp_Util_DocPlanProgess21]
View 2 RepliesI am working with asp.net 2008 and sql server 2005 . I get a situation where i have to delete data after 30 days. a suitable query how to do the same. I have go through different query but nothing going right for me.
View 2 RepliesI have a web app that I am developing at work. I need to be able to take input data and append a text file after (x) number of lines.
My web app is using asp.net with c#
How to write Stored Procedure for Insert Data & Execute it in MS SQL?
Some websites:
[URL]
Is there any possibility to execute the job in sql server. I want to create the Job. then through the quer i want to execute this Job by passing parameters. can we able to do this.Actucally i want to execute the SP from front end. but suddenly it should respond to the page. but that SP will run for nearly 5 minutes.
View 1 RepliesI have 3 different databases where some tables are common.
View 16 RepliesI have requirement that User can Upload the Excel Sheet Data to sql server Database at once.
View 16 Repliesi need to execute stored procedure on linked server (create procedure on linked server). i had try with this:
[Code]....
SQL code is looking like this
[Code]....
UDBV68 is linked server... Now, when i execute procedure from asp.net i got error 'Incorrect syntax near 'GO'.', but sql server doesn't report error...
Dbcall has value = "EXECUTE ('Create Procedure SelectOne as Select * From FixitOnline.Os_node ',952) AT UDBV54; GO"
I have a record created date stored as" 2010-05-16 15:44:18.700" in sql server database. When I read this date it gets converted to "5/16/2010 3:44:18 PM" . How should I read it so that I don't loose the ending '700' value so that it gets written exactly to another database.Code for reading the record:
String myConn = ConfigurationManager.ConnectionStrings["DBConnectionString"].ToString();
SqlConnection con = new SqlConnection(myConn);
SqlCommand cmd = new SqlCommand();[code].....
i am using .net 1.1 and sql 2000.i need to write the stored procedure in .cs file.is it possible.if so how?
View 2 Repliesi am trying to create an asp.net service where it can delete specific records from the databas, this is by code so far:
View 1 RepliesIn my stored procedure there are 8 queries for 8 tables.Each query has joins and sub queries. I am passing parameters & stored procedure name from front end(designed in asp.net 3.5) can we execute that 8 queries at the same time i.e. parallel execution so that I can minimize stored procedure execution time?
View 6 Repliessing VS 2008 at a workstation, I have successfully developed a local, file-system ASP.NET 3.5 website. The wbesite included a membership page with Windows authentication and a web parts page. The SQL Server 2005 ASPNETDB database has been created at an IIS web servr. Using the ASP.Net development server of the workstation, both the membership Membership/WebParts pages at the local website worked very well.
Then, I copied the website to a virtual directory at the IIS web server and creates a remote website for the workstation. Under theASP.NET development server of the workstation, both membership and webparts pages of the remote website at the IIS web server also worked fine.
However, when running these web pages from the IIS web server machine, something wrong happened with the web parts page. (The membership page still worked very well.) For the ASPNETDB database at the IIS web server machine, there is an EXECUTE permission error on an ASPNET stored procedure.
What are the differences between the ASP.NET development server and IIS web sever, which caused the EXECUTE permission error on the ASP.NET S.P.? How to find and fix the errors?
I'm wanting to insert some javascript in the body of a page using ClientScript.Register..() when a user returns to it (either by back button or on link click). When I use the back button the inline server script is never hit in debug. Any way to get the server to evaluate the code every single time the user is directed to that page.
View 1 RepliesI want to save zipped file on server disk using DotNetZip in ASP.Net .... This code creates zip and download it in client side download folder..
ZipFile zip = new ZipFile();
List<Attachment> listattachments = email.Attachments;
int acount = attachments.Count;
for (int i = 0; i < acount; i++)
[Code] ....
I am about to write a method that uses SQLParameter to insert some data into SQL server. However, do I "have" to specify a DBType? If not how is this handled?
Here is an example of the code I intend to write:
[Code]....
i have a table for customer forecast which contains customer, week number and quantit as columns. now i need to write query and list the week as column for each customer and each cell should have a quantity. how to write query for this using pivot logic. i dont want to use cursor.
View 3 RepliesI have read plenty of tutorials on taking a datagrid to a text file, but I haven't seen anything about taking a single cell from a datagrid, formatting it, and writing it to a text file. Is this possible, am I going about it wrong?
View 3 RepliesI have built a custom control. when i add this custom control in my page twice or more then the it write only one time of its render contest data.
View 4 RepliesI have SQL Server Database Primary Data File.
I want to recover the data from that file in to my data base which has the empty tables.
I have Microsoft SQL Server Query File which contain the table structure.
i am using sqlserver 2008
in my computer, sql server name is "LOCALHOET-PC" AND SECOND ONE "LOCALHOST-PCSQLEXPRESS"
I have write a code in my software like
SqlConnection conn;
conn = new SqlConnection("Data Source=LOCALHOST-PC;Initial Catalog=n4netsALT;Integrated Security=sspi");
conn.Open();
and it is working working smoothly in my computer
I am selecting time from dropdownlist. and want to convert it in datetime and store it in database. When I am converting it to Datetime using following statement.
DateTime start_Time = Convert.ToDateTime(start_ts);
but it is showing as : date:12:00:00AM
I need to store time in database and then show in using gridview.I wonder how to store and show data so that user will see correct datetime depanding on his timezone?
View 6 Replies