POST BACK TO SERVER
Aug 31, 2007hi all,
View 2 Replieshi all,
View 2 Replies
I have developed a report in which I have two date parameters. when I deploy the report and view the report
I can see that for each date selection it is going for a postback. could you please advice me how can I solve this issue.
Hi all,Anyone can show me how can I catch the 'Print' statement that I have defined in my store procedure using SQL server 2000 DB on the .aspx page? ( I am using ASP.NET 1.0)My store procedure as follow:CREATE PROC NewAcctType(@acctType VARCHAR(20))ASBEGIN --checks if the new account type is already exist IF EXISTS (SELECT * FROM AcctTypeCatalog WHERE acctType = @acctType) BEGIN PRINT 'The account type is already exist' RETURN END
BEGIN TRANSACTION INSERT INTO AcctTypeCatalog (acctType) VALUES (@acctType)
--if there is an error on the insertion, rolls back the transaction; otherwise, commits the transaction IF @@error <> 0 OR @@rowcount <> 1 BEGIN ROLLBACK TRANSACTION PRINT 'Insertion failure on AcctTypeCatalog table.' RETURN END ELSE BEGIN COMMIT TRANSACTION ENDENDThanks for all your replies
Hi all,
I am trying to write a web page connected to an sql database of my MP3 files. I have a dropdown list box that populates with the artist, this hopefully being used to filter results into a datagrid. However, i am having a problem with the ddlb box repopulating on post back, i trawled the news groups and coded the population of the ddlb within an "if not page.postback" statement but to no avail. If i connect the ddlb to another sql database i have, the page reloads with the selctedvalue retained. So the theory is now that it is the SQL database, (is this a limitation of SQL express?) and i am having troubleshooting this. Here is the SQL of the databse:
USE [mp3]GO/****** Object: Table [dbo].[Table_1] Script Date: 04/21/2008 20:40:21 ******/SET ANSI_NULLS ONGOSET QUOTED_IDENTIFIER ONGOCREATE TABLE [dbo].[Table_1]([Title] [nvarchar](50) NOT NULL,[Artist] [nvarchar](50) NULL,[Album] [nvarchar](50) NULL,[Year] [nvarchar](25) NULL,[Comment] [nvarchar](500) NULL,[TrackNumber] [nvarchar](10) NULL,[path] [nvarchar](300) NOT NULL,[genre] [nvarchar](25) NULL,[id] [int] IDENTITY(1,1) NOT NULL,CONSTRAINT [PK_Table_1_1] PRIMARY KEY CLUSTERED ([id] ASC)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]) ON [PRIMARY]
Any help much appreciated.
Cheers
Billy
Does anybody know of a way to rollback SQL Server 2005
databases back to SQL Server 2000? Is there a way of doing it without
resorting to Copy Database Wizard? I love to find a way of attaching a SS 2005 database
to a SS 2000 instance without any issues.
I recently upgraded to SS 2005 and I am very unhappy with the SS 2005 and I
want to rollback to SS 2000, which was a lot more stable. I am having
several major issues that are affecting my whole company's day-to-day
operations and the managers are not happy. Some of the issues include
night time batch running very sluggish for no apparent reason. This is a
biggest problem because it only occurs once or so a week and causes a disturbance
with the daily activities when the night time processing isn€™t completed on
time. The rest of the time, the batch processing runs great, even a little better then on SS 2000. I
don't believe it is a matter of my application needing to be retuned because if
that was the case, then why isn't it running sluggish every night? Also,
it's never the same day that the sluggish behavior occurs. If it was occurring
on the same night, then I would have something to investigate within our
application, but it doesn't. Another issue that I am having involves a
night time job that restores a copy of the production database to the Data
Warehouse server to be used for updating the data warehouse. Again, most
of the time it runs great (~2 1/2 hours), but once or twice a week, it goes
stupid and takes 6 1/2 hours for no apparent reason. Again, it is not happening
the same day either, which could give me something to invesigate. On SS 2000, this same job ran flawlessly. Never I did I run into situation that the
database restoration took that long to run. Even another issue involves a SQL Server Agent Job that was put into suspended
state. What's a suspended state and how can I get it out of suspended
state? I can find no information about suspended state in BOL. I
did a Google and nothing came up. If this suspended state was put
in for security reasons, great, but then tell me how I can remove the suspended
state. I am also not happy with the
fact that I can't get accurate information about the queries that are actively
running at that particular moment. In SS 2000, when I noticed high CPU
usage on the server, I would run the sp_who2 active stored proc and it would
show me all the active thread and how much CPU it was consuming. I would
then find the running threads with the highest CPU numbers and investigate the
query and see if we could improve it. Now in SS 2005, I get in the same
situation and run the sp_who2 stored proc, and there is no smoking gun.
All of the active threads are showing very little CPU usage, which I am very
suspect of. What the heck happen to sp_who2? I looked at some of
the other ways of looking at running processes (i.e... sys.sysprocesses) and
they don't appear to be giving the information that I need.
I am very unhappy and I just want to roll back to SS 2000 and wait a couple of
years before I upgrade to SS 2005.
Dave Brown
---------------------------------------------------------------
My Original Post
I have to query n table(NLRImports) using the Distinct keyword, to retrieve a set of ID numbers. ( "Select DISTINCT id_nbr from NLRImport" ).
Now i want to use those values i retrieved, to process the records in the table(NLRImports) 1 by 1. How do i use those ID no's i retrieved as Variables or parameters for my next query?? If this makes sense?
----------------------------------------------------------------
First, thanks for the response.... now here is what im trying to do.
I created a simple application in delphi to import information to a table in MSSql2005. This is some of the resulting columns...
date | id_nbr | account_nbr | sub_account_nbr | ... etc
-------------------------------------------------------------
Now there will be several entries with the same id no but on different dates, so i take it dates would rather be my pkey.
Then i need to take one person's entries(i work on id_nbr) and go thru all the entries taking the earliest date and comparing all the other entries for that person to the first date and select all the dates more than 19 days after the first date and less than 91 days from first date and place it in a new table.
I used cursor s and while loops to kind of get it going but i know that cursors are not really recommended use but the performance implications dont bother with this particular job.
What other ways should i be using to accomplish this?
thanks, i hope this is clear...
Hi there
We've just starting rolling out SQL Server 2005 SP2 (9.0.3042) on 1 single server and some clusters.
Generally we are never implemented post fix etc etc just service pack. I can see more post fixes comes out. For the single box, what is the best practise to apply this upgrade? Apply this fix and hoping no issue :) I guess testing it's the best but if you get the so many hot fixes thay means have to test one by one?
How do you for the cluster? Once you update one node, does it actually update the second node as well?
Waiting for the feedback.
Thanks
Moderators help
I cannot post in some forums. For example I am trying to reply to this forum
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=87688
But it won't post and I get cannot find server and there are some other posts as well. What could be the problem
Here is my reply just in case somebody else can post it there.
CREATE TABLE #Table1 (C1 money)
INSERT INTO #Table1 VALUES(4.13)
INSERT INTO #Table1 VALUES(4.24)
INSERT INTO #Table1 VALUES(6.76)
INSERT INTO #Table1 VALUES(5.17)
INSERT INTO #Table1 VALUES(5.29)
select convert(varchar(20),C1) from #table1
Ashley Rhodes
hello, i have this summarized stored proc. Problem is, when using'Send', my aspx page reads (asp.net)Request.Form as emptyHowever, when I use a simple html file to post, it works. Does anyoneknow what's wrong?EXEC @iHr = sp_oaCreate 'Msxml2.ServerXMLHTTP.3.0',@iObject OUTPUTdeclare @data as nvarchar(max)set @data = 'boo=yeah'EXEC @iHr = sp_OAMethod @iObject, 'Open', null,'POST',@smtpWebService, 0EXEC @iHr = sp_OAMethod @iObject, 'setRequestHeader', null, 'Content-Type', 'application/x-www-form-urlencoded'EXEC @iHr = sp_OAMethod @iObject, 'send',null,@datawhile @State<>4beginexec sp_oagetproperty @iObject, 'readyState', @State outputendEXEC @iHr = sp_OAGetProperty @iObject, 'responseText',@retVal OUTprint @retValEXEC sp_OADestroy @iObject
View 2 Replies View Related
Hi again,
I'm still stuck with my problem. Going back to first post, the original problem was that, when applying "SQL server Express with advanced tools SP2", I had to stop because of following item which was disabled:
- Workstation components and development tools 9.1.2047.00
=> which is simply disabled???
Then from 2nd post, I could verify from Add/Remove Programs that all components installed for SQL Server 2005 were Express edition.
SQLEXPRESS
Database Engine
[Version: 9.1.2047.00 Edition: Express Edition Patch level: 9.1.2047 Language: Anglais (États-Unis)]
Reporting Services
[Version: 9.1.2047.00 Edition: Express Edition Patch level: 9.1.2047 Language: Anglais (États-Unis)]
Common components
Workstation Components
[Version: 9.1.2047.00 Edition: Express Edition Patch level: 9.1.2047 Language: Anglais (États-Unis)]
Also, following explanations from Mike, I could check that the toolkit that was installed was also from Express Edition looking at following registry key:
"You can do so in the registry at HKEY_LOCAL_MACHINESOFTWAREMicrosoftMicrosoft SQL Server90ToolsSetup. Look at the Edition Type..."
Finally, a question still remain. Starting from the fact that I originally applied SQL Server 2005 SP1 with success using following sequence:
SQL Server 2005 Express Edition with advanced services SP1
SQL Server 2005 Express Edition Toolkit SP1
and that I could verify, following Mike's suggestion, that all SQL Server Software found in registry (HKEY_LOCAL_MACHINESOFTWAREMicrosoftMicrosoft SQL Server90...) are all listed (vs Edition type) as Express editions:
==> Should I apply the "Express Edition Toolkit SP2" before applying the "SQL Server 2005 Express with advanced Services SP2"???
Many thanks for your support and hope to hear from someone!
Stéphane
Today I attempted to install SQL Reporting Services on a box that only has the OLE DB driver for Analysis Services and the MSXML components; both of which are SP2.
When running the SQL Server 2005 install to install SSRS, I get an error:
"SQL Server 2005 Setup has detected incompatible components from beta versions of Visual Studio, .NET Framework, or SQL Server 2005. Use Add or Remove Programs to remove these components, and then run SQL Server 2005 Setup again. For detailed instructions on uninstalling SQL Server 2005, see the SQL Server 2005 Readme."
This box has barely anything on it aside from ProClarity Analytics Server and the components I mentioned above. My only guess is that the SQL 2005 installer sees some newer components that are SP2 and it thinks they are beta? I know for sure I do not have any beta software on this machine.
Any ideas?
Hello,I'm trying to create a simple back up in the SQL Maintenance Plan that willmake a single back up copy of all database every night at 10 pm. I'd likethe previous nights file to be overwritten, so there will be only a singleback up file for each database (tape back up runs every night, so each daysback up will be saved on tape).Every night the maintenance plan makes a back up of all the databases to anew file with a datetime stamp, meaning the previous nights file stillexists. Even when I check "Remove files older than 22 hours" the previousnights file still exists. Is there any way to create a back up file withoutthe date time stamp so it overwrites the previous nights file?Thanks!Rick
View 5 Replies View RelatedNew to Database Mirroring and I have a question about the Principal database server. I have a Database Mirroring setup configured for High-safety with automatic fail over mode using a witness.
When a fail over occurs because of a lost of communication between the principal and mirror, the mirror server takes on the roll of Principal. When communication is returned to the Principal server, at some point does the database that was the previous Principal database automatically go back to being the Principal server?
I need to run two reports each of A5 Size to run back to page and print on single A4 paper means in 1st half Sale bill will be printed and in second half Gate Pass Will Be Printed both report will be on same page and size and shape should be maintained. How to do it.
View 4 Replies View RelatedLets say I use the 'enabling roles' for my ASP 2.0 site. This creates a ASPNETDB.DBF SQL Express file.
Later I go to post this to a real web server - which runs the 'full' MS SQL2005 server. What happens to the ASPNETDB.MDF file (or for that matter, any other MDF file I create with SQL Express) when it leaves the Express world and enters the Real world.
Hi,
I started applying "SQL server Express with advanced tools SP2" and had to stop on following items which I'm not too sure about what I must understand from step "Existing components". Those three items listed were:
- "SQL Server DataBase Services 9.1.2047.00"
=> which I can check
- "Reporting Services 9.1.2047.00"
=> which I can check
- Workstation components and development tools 9.1.2047.00
=> which is simply disabled???
If I then look at the details of that last item, I can see the following warning:
Name: Microsoft SQL Server 2005 Tools
Reason: Your upgrade is blocked. For more information about upgrade support, see the "Version and Edition Upgrades" and "Hardware and Software Requirements" topics in SQL Server 2005 Setup Help or SQL Server 2005 Books Online.
Edition check:
Your upgrade is blocked because of edition upgrade rules. For more information about edition upgrades, see the Version and Edition Upgrades topic in SQL Server 2005 Setup Help or SQL Server 2005 Books Online.
Now, following the suggestion of one person answering previous thread,
"If you're not sure if you have tools from another edition, you can check by going to Add/Remove Program, selecting the Microsoft SQL Server 2005 entry and clicking Change..."
I followed suggestion and got following result:
DEVELOPPEMENT
The following components are installed on this server
SQLEXPRESS
Database Engine
[Version: 9.1.2047.00 Edition: Express Edition Patch level: 9.1.2047 Language: Anglais (États-Unis)]
Reporting Services
[Version: 9.1.2047.00 Edition: Express Edition Patch level: 9.1.2047 Language: Anglais (États-Unis)]
Common components
Workstation Components
[Version: 9.1.2047.00 Edition: Express Edition Patch level: 9.1.2047 Language: Anglais (États-Unis)]
Looking at the results, everything seems to be normal. Only Express Edition, all same level which should be SP1. What step should I take to be able to upgrade to SP2 properly?
Thanks in advance,
Stéphane
P.S.
From "Add/Remove Programs" I have, all listed, the following SQL Server installed programs:
- Microsoft SQL Server 2005
- Microsoft SQL Server 2005 Backward compatibility
- Microsoft SQL Server 2005 Books Online (English) (July 2006)
- Microsoft SQL Server 2005 Compact Edition (ENU)
- Microsoft SQL Server 2005 Compact Edition Books Online (ENU)
- Microsoft SQL Server 2005 Compact Edition Developer Software Development Kit (ENU)
- Microsoft SQL Server 2005 Compact Edition Tools for Visual Studio 2005 (ENU)
- Microsoft SQL Server Management Studio Express
- Microsoft SQL Server Native Client
- Microsoft SQL Setup Support Files (English)
- Microsoft SQL Server VSS Writer
Hi can someone help me please? I browsed through the SP2 install feedback below, but it doesn't quite seem to fit what happened to my install. My .MDF and .LDF files for the system databases are in C:Program FilesMicrosoft SQL ServerMSQL.1MSQLData (I presume this is the correct location.)
I am the local administrator on this box.
I uploaded the .CAB file with all the logs onto www.sendspace.com if it gives you something to go on.
The only other thing of note is that it said there were two machines on the network and that I needed to change my machine name in the control panel when I installed. This doesn't seem right, as far as I understand the computer name is unique.
The SQL Server runs under the local system account, if that is of any use.
I attempted uninstalling and reinstalling the SQL native client MSI package in the hope it would be a simple fix similar to that chap further down the page, but that didn't help at all either.
.CAB file of installation logfiles is here: http://www.sendspace.com/file/7ihoet
kind regards
Jason
ERRORLOG starting SQL Server post failed SP2 install
2007-06-12 19:55:21.94 Server Microsoft SQL Server 2005 - 9.00.3042.00 (Intel X86)
Feb 9 2007 22:47:07
Copyright (c) 1988-2005 Microsoft Corporation
Enterprise Edition on Windows NT 5.2 (Build 3790: Service Pack 1)
2007-06-12 19:55:21.96 Server (c) 2005 Microsoft Corporation.
2007-06-12 19:55:21.96 Server All rights reserved.
2007-06-12 19:55:21.97 Server Server process ID is 5468.
2007-06-12 19:55:21.97 Server Authentication mode is MIXED.
2007-06-12 19:55:21.97 Server Logging SQL Server messages in file 'C:Program FilesMicrosoft SQL ServerMSSQL.1MSSQLLOGERRORLOG'.
2007-06-12 19:55:21.97 Server This instance of SQL Server last reported using a process ID of 5756 at 12/06/2007 19:36:35 (local) 12/06/2007 18:36:35 (UTC). This is an informational message only; no user action is required.
2007-06-12 19:55:21.97 Server Registry startup parameters:
2007-06-12 19:55:21.99 Server -d C:Program FilesMicrosoft SQL ServerMSSQL.1MSSQLDATAmaster.mdf
2007-06-12 19:55:21.99 Server -e C:Program FilesMicrosoft SQL ServerMSSQL.1MSSQLLOGERRORLOG
2007-06-12 19:55:21.99 Server -l C:Program FilesMicrosoft SQL ServerMSSQL.1MSSQLDATAmastlog.ldf
2007-06-12 19:55:22.00 Server SQL Server is starting at normal priority base (=7). This is an informational message only. No user action is required.
2007-06-12 19:55:22.00 Server Detected 4 CPUs. This is an informational message; no user action is required.
2007-06-12 19:55:22.17 Server Address Windowing Extensions is enabled. This is an informational message only; no user action is required.
2007-06-12 19:55:22.33 Server Using dynamic lock allocation. Initial allocation of 2500 Lock blocks and 5000 Lock Owner blocks per node. This is an informational message only. No user action is required.
2007-06-12 19:55:22.57 Server Attempting to initialize Microsoft Distributed Transaction Coordinator (MS DTC). This is an informational message only. No user action is required.
2007-06-12 19:55:23.60 Server Attempting to recover in-doubt distributed transactions involving Microsoft Distributed Transaction Coordinator (MS DTC). This is an informational message only. No user action is required.
2007-06-12 19:55:23.63 Server Database mirroring has been enabled on this instance of SQL Server.
2007-06-12 19:55:23.72 spid5s Starting up database 'master'.
2007-06-12 19:55:24.07 spid5s SQL Trace ID 1 was started by login "sa".
2007-06-12 19:55:24.11 spid5s Starting up database 'mssqlsystemresource'.
2007-06-12 19:55:24.13 spid5s The resource database build version is 9.00.3042. This is an informational message only. No user action is required.
2007-06-12 19:55:24.29 spid5s Server name is 'GBLOND088SQ8MSQL_CREDS_DEV1'. This is an informational message only. No user action is required.
2007-06-12 19:55:24.29 spid9s Starting up database 'model'.
2007-06-12 19:55:24.30 Server Error: 17182, Severity: 16, State: 1.
2007-06-12 19:55:24.30 Server TDSSNIClient initialization failed with error 0x34, status code 0x1e.
2007-06-12 19:55:24.30 Server Error: 17182, Severity: 16, State: 1.
2007-06-12 19:55:24.30 Server TDSSNIClient initialization failed with error 0x34, status code 0x1.
2007-06-12 19:55:24.30 Server Error: 17826, Severity: 18, State: 3.
2007-06-12 19:55:24.30 Server Could not start the network library because of an internal error in the network library. To determine the cause, review the errors immediately preceding this one in the error log.
2007-06-12 19:55:24.30 Server Error: 17120, Severity: 16, State: 1.
2007-06-12 19:55:24.30 Server SQL Server could not spawn FRunCM thread. Check the SQL Server error log and the Windows event logs for information about possible related problems.
I am querying with a SELECT statement against an address table that has a post code column with corrupt data.
Sample record:- Northants NN4 0NB
Should be NN4 0NB
I have used the following on another column:-
LEFT(A.Addr1,CASE WHEN CHARINDEX ('(', A.Addr1) =0 THEN LEN(A.Addr1) ELSE CHARINDEX('(' ,A.Addr1) -1 END) AS 'Address 1'
but unable to correct this problem?
Hello,I am hoping you can help me with the following problem; I need to process the following steps every couple of hours in order to keep our Sql 2000 database a small as possible (the transaction log is 5x bigger than the db).1.back-up the entire database2.truncate the log3.shrink the log4.back-up once again.As you may have determined, I am relatively new to managing a sql server database and while I have found multiple articles online about the topics I need to accomplish, I cannot find any actual examples that explain where I input the coded used to accomplish the above-mentioned steps. I do understand the theory behind the steps I just do not know how to accomplish them!If you know of a well-documented tutorial, please point me in the right direction.Regards.
View 2 Replies View RelatedI believe that I mistakenly attempted to apply the Analysis Services component of this update before applying the SQL Server component. The update now fails continuously with the following message:
02/05/2007 17:58:24.990 ================================================================================
02/05/2007 17:58:25.021 Hotfix package launched
02/05/2007 17:58:27.615 Product discovery successfully completed during the install process for MSSQLSERVER
02/05/2007 17:58:27.630 SP Level check successfully completed during the install process for MSSQLSERVER
02/05/2007 17:58:27.646 Product language check successfully completed during the install process for MSSQLSERVER
02/05/2007 17:58:27.661 Product version check successfully completed during the install process for MSSQLSERVER
02/05/2007 17:58:27.677 Command-line instance name check completed during the install process
02/05/2007 17:58:27.693 Baseline build check completed during the install process
02/05/2007 17:58:34.864 Attempting to install instance: MSSQLSERVER
02/05/2007 17:58:34.974 Attempting to install target: CHARLIDEVSRV
02/05/2007 17:58:35.005 Attempting to check for locked files: sqlrun_sql.msp
02/05/2007 17:58:35.052 Attempting to check for locked files: \CHARLIDEVSRVf$44923e05996203228c1608bea1hotfixsqlFilessqlrun_sql.msp
02/05/2007 17:58:35.067 Creating MSP locked file check log at: C:WINDOWSHotfixSQL9LogsSQL9_Hotfix_KB918222_sqlrun_sql.msp.out
02/05/2007 18:01:52.978 MSP returned 1635: This patch package could not be opened. Verify that the patch package exists and is accessible, or contact the application vendor to verify that this is a valid Windows Installer patch package.
02/05/2007 18:01:53.009 Unable to check MSP file: \CHARLIDEVSRVf$44923e05996203228c1608bea1hotfixsqlFilessqlrun_sql.msp
02/05/2007 18:01:53.025 The following exception occurred: Unable to install Windows Installer MSP file Date: 02/05/2007 18:01:53.025 File: depotsqlvaultstablesetupmainl1setupsqlsesqlsedllcopyengine.cpp Line: 689
02/05/2007 18:01:53.212 Failed to install instance: MSSQLSERVER
02/05/2007 18:01:53.259
02/05/2007 18:01:53.259 Product Status Summary:
02/05/2007 18:01:53.290 Product: SQL Server Database Services 2005
02/05/2007 18:01:53.306 MSSQLSERVER - Failure
02/05/2007 18:01:53.321
The update fails although I have cleaned the registry of any reference to it. Another article indicated that the hotfix may delete registry keys required, for instance, to operated SSIS if applied in the wrong order. Here, it appears to be preventing the hotfix from being reapplied. I have ensured that all necessary permissions are available and the services are running in domain user accounts with the necessary rights. I'm the administrator on the machine.
Is there a way to get this hotfix applied without having to completely rip and rebuild my server instance?
Hi, For Asp.net project i have used backend as sql server database.My database name is Traveldb.i want to take the backup for this database in SQL Server as a "Filename.sql". Please tell me the steps to follow to take the backup file as SQL Script File extension.Thanks & Regards,Laxmi
View 1 Replies View RelatedHi there.
I'd like to backup below item from server to my client ( local ) .
1. DTS package
2. All jobs in SQL Server agent
How can I do ?
Please advise me
Hi everyone. I just want to ask if the triggers I have created in my tables will be included in the back-up of my database? Hope to hear from you soon. Thanks in advance.
View 5 Replies View RelatedHi folks,I was working on MS sql server 2005 evalution where i have built a number of databases. However, i came to discove that the evalution version has expried before i finished my work. Now i have disinstalled the sql server 2005 and installed the Sql express edition.My concern here is how can i keep my databases so they can work with sql express edition?Thank you very much in advance.
View 1 Replies View RelatedI am having a nightmare of a time with my Sql Server 2005 Express. My computer crashed on Friday the 13th - of course. I saved all my files onto another drive and wiped out C: I brought everything back in but I started a new file for my Visual Basic projects. After asking questions I found this was a major no-no So I brought my original folder back in. This solved some of my problems I was having with Visual Studio and Visual Web, but I am continuing to have problems with Sql Server. I will explain these two problem they may be related, I don't know. When I run my Visual Website on a server I get this message:
An attempt to attach an auto-named database for file(then my file name)failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.
And my second problem is when I attempt to run Sql Server Management Studio Express I get this error message:
There is no editor available for (then my file name) .mdf
Make sure the application for file type(.mdf)is installed.
HI allI want to take a back of my serverthere is 40 data base into my server and i have to take back of every database every day is there any way which can take back up of hole server at one time.regard
View 1 Replies View RelatedI am trying to back up database to a different server. I am able to map the serve to my current ones, however, when I go to Enterprise Manager - back up DB, I can not see the mapped drive from back up file location, I wasn't able to see any other disk location but the local drives.
Can somebody tell me how can I back up database to a different server from Enterprise Manager or any syntax?
Thanks.
Hello,
Is it possible, into a DTS package, to get back the name of the SQL server on which it is registered (through a property of the DTS package for example) ?
I know it's possible to see the name of a server with the system variable @@servername or this request "Select srvname From master..sysservers" but I don't know how I can allocate the value of these solutions to a variable into an ActiveX script...
Could someone help me ????
Thanks in advance !
Sorry for my english but I'm french :)
Hello,
I want to schedule an automated nightly backup of a database to another server on the network (backing up a 6.5 database on Server3 to Server5). File sharing is turned on for Server5 with all permissions, so that shouldn't be a problem. Server 3 sees the Server5 backup location fine from the NT Explorer, proving the two servers are talking to each other okay. Both servers have an NT account called SQLServer with the same name and password and full administrative privileges, which Server3's SQL Executive service uses to log on with (SQL Server is not installed on Server5).
When I try to back up to Server5 (whether to Server5DDRIVETBBackupDailyTimeAndBilling.dat or to a mapped drive F:TBBackupDailyTimeAndBilling.dat) an error message is returned saying "[SQL Server] Can't open dump device 'Server5DDRIVETBBackupDailyTimeAndBilling.dat' , device error or device off line. Please consult the SQL Server error log for more details." The error log says "Backup device 'Server5DDRIVETBBackupDailyTimeAndBilling.dat' failed to open, operating system error = 5(Access is denied.)"
Any help would be greatly appreciated.
Regards,
Karl Simanonok
Professional Presence Providers, Inc.
I am trying to set up an Access db to connect to a SQL server back end. I created a system DSN and then linked the Access db to it; no problem when the Access db is local.
When I upload the Access db to the website, it refuses to connect; I keep getting this error message:
Microsoft OLE DB Provider for ODBC Drivers error '80004005'
[Microsoft][ODBC Microsoft Access Driver] ODBC--connection to 'SQS2008' failed.
Here is the ASP code in the web page (pretty plain vanilla):
DIM Connect2
SET Connect2=Server.CreateObject("ADODB.CONNECTION")
DSNTemp="Driver={Microsoft Access Driver (*.mdb)}; "
DSNTemp = DSNTemp & "DBQ=" & server.mappath("yetanothertest.mdb")
connect2.Open DSNTemp
SET onwash2=Connect2.Execute("SELECT * FROM LineStandardPolicies")
Any help would be appreciated. Thank you!
Hi all
Hope you can help.
I've been using MS Access as a backend content server on websites for some time. However, I want to move to Sql Server but am struggling a bit with some of the concepts.
I want two types of users of the website.
1 User who can view data as a iusr_guest type user (no login)
2 can view/ edit data as a datawriter (website administrator).
With Access I would simply have a table or another db containing user info. If a user logged in and was accepted then a IIS user session would be created and they could edit the db.
Any views on how this type of simple db access should be managed using sql server?
best regards
chubster
What is the best way to back up sql server to a remote site so that if we had total data loss locally I would be able to restore and get back up and running as quickly as possible. I have a remote file storage option that I use and I currently store a MSAccess version of the db there. I assume there is a much better solution to this. Can someone "upgrade my knowledge" please?
Thanks a ton~
What is the best way to back up sql server to a remote site so that if we had total data loss locally I would be able to restore and get back up and running as quickly as possible. I have a remote file storage option that I use and I currently store a MSAccess version of the db there. I assume there is a much better solution to this. Can someone "upgrade my knowledge" please?
Thanks a ton~