How Can I Get Back The Lost View?

Dec 25, 2006

Hi,

I am a newbie working on MS Sql Server 2000 for a while. I accidentally deleted a view through Query Analyzer and want to get it back. All data are backed-up every day but there are a lot of red tapes I have to go through in order to draw the lost view from the backup. Indeed, a different division is taking care of backups in our organization and they don't want to spend time on my issue.

I'm wondering if there is an automatic logging capability of sql server showing modified/ deleted/ updated data objects on daily basis with their contents that can be accessed later on. Or is there another recovery mechanism that can be used to get back the lost view?

Thanks for your attention to this matter,

Batuhan

View 5 Replies


ADVERTISEMENT

Execution ID Is Lost After Pressing The Back Button (drill-through Reports)

Dec 12, 2006

Hi there,

I'm using the reportviewer control to display a drill-through serverreport. Here is the code in my code-behind file:

Protected Sub Page_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Init

Dim strReportPath As String = "/Public Reports/adfront/dealermodel/myreportname"

Dim paramUniqueID As New ReportParameter()

If Not Page.IsPostBack And Me.ReportViewer1.ServerReport.IsDrillthroughReport = False Then

Session("uniqueid") = Request.QueryString("uniqueid").ToString

'Set the report server URL and report path

Me.ReportViewer1.ServerReport.ReportServerUrl = New Uri("http://localhost/reportserver")

Me.ReportViewer1.ServerReport.ReportPath = strReportPath

Me.ReportViewer1.SizeToReportContent = True

Me.ReportViewer1.AsyncRendering = False

Me.ReportViewer1.ShowBackButton = True

Me.ReportViewer1.ShowFindControls = False

Me.ReportViewer1.ShowPageNavigationControls = False

Me.ReportViewer1.ShowParameterPrompts = False

Me.ReportViewer1.ShowPromptAreaButton = False

Me.ReportViewer1.ShowZoomControl = True

Me.ReportViewer1.ZoomMode = ZoomMode.FullPage

'Set the processing mode for the ReportViewer to Remote

Me.ReportViewer1.ProcessingMode = ProcessingMode.Remote

'Set the report parameters for the report

paramUniqueID.Name = "uniqueid"

paramUniqueID.Values.Add(Session("uniqueid"))

Dim parameters() As ReportParameter = {paramUniqueID}

Me.ReportViewer1.ServerReport.SetParameters(parameters)

End If

Me.ReportViewer1.ServerReport.Refresh()

End Sub



Protected Sub ReportViewer1_Drillthrough(ByVal sender As Object, ByVal e As Microsoft.Reporting.WebForms.DrillthroughEventArgs) Handles ReportViewer1.Drillthrough

While (Me.ReportViewer1.ServerReport.IsDrillthroughReport)

Me.ReportViewer1.PerformBack()

End While

'Me.ReportViewer1.ServerReport.ReportPath = e.ReportPath

'Me.ReportViewer1.ServerReport.GetParameters()

Me.Label1.Text = Me.ReportViewer1.ServerReport.ReportPath

End Sub

When I drill-through the report and hit the (browser) back button and try to drill-trough again I get the following error:

The path of the item "(null)" is not valid. The path must be less than 260 characters long and must start with slash. Other restrictions apply. (rsInvalidItemPath)

When I hit back again and try to export the report to eg. PDF, I get this error:
Execution 'mly2yj555oen0o45oowe1e55' cannot be found

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Exception: Execution 'mly2yj555oen0o45oowe1e55' cannot be found

Source Error:





An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:





[Exception: Execution 'mly2yj555oen0o45oowe1e55' cannot be found]
Microsoft.Reporting.WebForms.ServerReport.ServerUrlRequest(Boolean isAbortable, String url, Stream outputStream, String& mimeType, String& fileNameExtension) +553
Microsoft.Reporting.WebForms.ServerReport.InternalRender(Boolean isAbortable, String format, String deviceInfo, NameValueCollection urlAccessParameters, Stream reportStream, String& mimeType, String& fileNameExtension) +941
Microsoft.Reporting.WebForms.ServerReport.Render(String format, String deviceInfo, NameValueCollection urlAccessParameters, String& mimeType, String& fileNameExtension) +97
Microsoft.Reporting.WebForms.ServerReportControlSource.RenderReport(String format, String deviceInfo, NameValueCollection additionalParams, String& mimeType, String& fileExtension) +126
Microsoft.Reporting.WebForms.ExportOperation.PerformOperation(NameValueCollection urlQuery, HttpResponse response) +153
Microsoft.Reporting.WebForms.HttpHandler.ProcessRequest(HttpContext context) +202
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +154
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64





Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.210

It looks like my executionid is lost on the reportserver. Does anybody knows how to fix this, so my users can use the browser back button?

Many thanx!

Ralph

View 1 Replies View Related

Lost Tree View In Studio...

Mar 5, 2007

In the Microsoft SQL Server Management Studio, could anyone tell me how to enable the 'tree view' for the Summary window? It currently behaves like a file folder where I can move up and down 'folders' but can't see the tree of where I'm at.

View 1 Replies View Related

Power Pivot :: How To Get Back To Traditional Hierarchy Dimensional View

Jun 17, 2015

When ever I create a new Powerpivot from an AS cube, PowerPivot shows the data only in flattened PowerPivot format. How can I get back to traditional hierarchy dimensional view in Pivot table.

View 5 Replies View Related

Using Membership Db To Lookup Data In Another Db And Bring Back Into A Grid View (total Newbie To .net)

May 11, 2007

I have the membership stuff up and running.  I've added a field to the membership table called custnmbr.  Once a user logs in, I want store his custnbmr in the session and use that to lookup data in another db.
ie: Joe logs in and his custnumbr is 001, he goes to the login success page and sees his list of service calls which is:
select top 10 * from svc00200 where custnmbr = 001 (the membership.custnmbr for the logged in user)
I know how to do this in old ASP using session variables....but I have no idea where to even start with .Net.
Many thanks

View 7 Replies View Related

SQL Server 2012 :: View To Concatenate File / Path Names Back To Root Directory?

Sep 25, 2014

We have a hierarchical table of some 2-3k of rows that grows slowly at only 3-5 rows a month, and is never likely to be above 5k, holding file/directory names with an IdParent int value pointing at that items immediate parent or NULL if root

Below is a sample:

Id Name IdParent
1 C: NULL
2 D: NULL
3 ProgramFiles 1
4 DataFiles 2
5 Excel.EXE 3
6 MyDataList.CSV 4

iterative code required to achieve the result I am looking for is best handled in the Application layer, but in this case the design brief is that we must get our results back as a View. Speed of execution and code clarity are secondary 'icing on the cake' issues.

I have tried recursive CTE's and XML FOR solutions but without success, and while I feel the latter is probably the best all rounder the searches I have made and the examples I have read do not seem to solve this particular issue.

Even to find the starting point of the search tree (i.e. the .EXE and the .CSV items) was difficult because the final slash is optional in some of the rows (.e. row 4)

The end result of my view on the above data should return:

Id FilePath
5 C:ProgramFilesExcel.EXE
6 D:DataFilesMyDataList.CSV (note the adding of the missing delimiter between DataFiles and MyDataList)

View 5 Replies View Related

Having Difficulty Setting Back Up To Back Up File Wihout Datetime Stamp SQL 2K

Apr 24, 2007

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 Related

Mirroring :: Principal Database Get Role Back After Being Back On Line

May 14, 2015

New 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?

View 2 Replies View Related

Reporting Services :: Run Two Reports Back To Back Without Page Eject?

Jun 9, 2015

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 Related

How Do I Back-up &> Truncate &> Shrink &> Back-up SQL 2000

Jul 20, 2005

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 Related

Rolling Back SQL Server 2005 Databases Back To SQL Server 2000

Sep 22, 2006

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

View 1 Replies View Related

Help!!!!!!! Lost DB!

Aug 19, 1999

I need help ASAP!

For some reason, we lost a dozen of our tables with valuable data. could be a virus or something that cleared out our data.

The last backup we have is last night at 11PM. If we recover from that backup, all the users lose all of today's work!

Is there a way I can just roll back the transactions from today?????!

I'd really appreciate any help urgently
Joyce

View 1 Replies View Related

Lost :-(

Nov 15, 2005

Hi all......well ill try and explain what I dont understand :-(

I am completely new to SQL. I have downloaded SQL Server Express 2005. I guess I need to download another program now like SQL Query Analyaer so that I can query a database - can anyone recommend a free download that will do the job?? I had a play around with one that I downloaded but to be honest, I have no idea on how to get the two programs talking.

Is someone able to guide me through how to initially set up SQl Server and how to get evrything working??

Much appreciated :-)

Gavsta

View 1 Replies View Related

Lost

Jan 17, 2008

I get multiples of one record. i dont want multiples. but i need to have all the records that are the latest and i dont know how. can you help me.
thanks


SELECT TOP 1 [sn].[WrkstaId]
,[sn].[Computer Model]
,[sn].[Serial Number]
,[sn].[Asset Tag]
,[sn].[Computer Type]
,[id].[Name]
,[id].[Domain]
,[id].[OS Name]
,[id].[OS Type]
,[id].[Last Logon User]
,[id].[Last Logon Domain]
,[id].[Client Date]
,[pu].[_id]
,[pu].[Month]
,[pu].[User]
FROM [Altiris].[dbo].[AeXInv_AeX_HW_Serial_Number] sn INNER JOIN [Altiris].[dbo].[AeXInv_AeX_AC_Identification] id
ON [sn].[WrkstaId]=[id].[WrkstaId]
INNER JOIN [Altiris].[dbo].[AeXInv_AeX_AC_Primary_User] pu
ON [sn].[WrkstaId]=[pu].[WrkstaId]
WHERE [sn].[WrkstaId]=(SELECT MAX([WrkstaId]) FROM [Altiris].[dbo].[AeXInv_AeX_HW_Serial_Number]
WHERE [Serial Number]='68659')
ORDER BY [pu].[_id] DESC



68659Latitude D62028LGGD1Data not accessiblePortableWL-28LGGD1AZCORPMicrosoft Windows 2000Professionaluswclh04AZCORP2008-01-16 17:20:37.000864649Januaryuswclh04

68659Latitude D62028LGGD1Data not accessiblePortableWL-28LGGD1AZCORPMicrosoft Windows 2000Professionaluswclh04AZCORP2008-01-16 17:20:37.000864648Decemberuswclh04

View 7 Replies View Related

New To SQL && Lost

Apr 11, 2008



After much hard work and effort I finally got SQL Server downloaded and opened. I am at a lost since the "Dummies" books, SQL & SQL Servier 2005 Reporting Services, I have don't (I can't find or understand) explain what I am trying to do. I have been able to create a couple of table, but can't see them. I can see the queries but not the actual table unless I run a query. How can I open the table it self?

Would to import an Access table in the SQLEXPRESS but can't figure out how. Can I get some guidence?

Any help I can get would be helpful. Thank you in advance.

CarLost48

View 5 Replies View Related

Creating Index On A View To Prevent Multiple Not Null Values - Indexed View?

Jul 23, 2005

I am looking to create a constraint on a table that allows multiplenulls but all non-nulls must be unique.I found the following scripthttp://www.windowsitpro.com/Files/0.../Listing_01.txtthat works fine, but the following lineCREATE UNIQUE CLUSTERED INDEX idx1 ON v_multinulls(a)appears to use indexed views. I have run this on a version of SQLStandard edition and this line works fine. I was of the understandingthat you could only create indexed views on SQL Enterprise Edition?

View 3 Replies View Related

Write A CREATE VIEW Statement That Defines A View Named Invoice Basic That Returns Three Columns

Jul 24, 2012

Write a CREATE VIEW statement that defines a view named Invoice Basic that returns three columns: VendorName, InvoiceNumber, and InvoiceTotal. Then, write a SELECT statement that returns all of the columns in the view, sorted by VendorName, where the first letter of the vendor name is N, O, or P.

This is what I have so far,

CREATE VIEW InvoiceBasic AS
SELECT VendorName, InvoiceNumber, InvoiceTotal
From Vendors JOIN Invoices
ON Vendors.VendorID = Invoices.VendorID

[code]...

View 2 Replies View Related

Calling A Stored Procedure From A View OR Creating A #tempTable In A View

Aug 24, 2007

Hi guys 'n gals,

I created a query, which makes use of a temp table, and I need the results to be displayed in a View. Unfortunately, Views do not support temp tables, as far as I know, so I put my code in a stored procedure, with the hope I could call it from a View....

I tried:

CREATE VIEW [qryMyView]
AS
EXEC pr_MyProc


and unfortunately, it does not let this run.

Anybody able to help me out please?

Cheers!

View 3 Replies View Related

Lost In The Land Of SQL....

Jun 8, 2007

 Hello,I am using visual studio express edition.  I making a nice website that uses the ASPNETDB.MDF for all those cool asp 2.0 membership and roles stuff..   This uses a SQL express database.  OK so far.  I have tried and tried to get my website live so I can further test it, but I can't People have been helpful, escpecially Bruce from this forum.  I need more than help I guess.  I really need to get this website up. Can someone please tell me where I can go to hire someone who will talk me through this process.  I am not a programmer, I am a hobbyist.  I understand SQL to select and update my database, but I can't do the stuff I read in FAQ's.  It seems to be written for professionals.  I have tried 3 different hosting services none seem to work.  Please someone send me a private msg.  we can work out terms.   I am sure with someone over the phone that knows sql express and visual web developer expres will have me up and running in a jiffy.  I can send payment via paypal.Jason  

View 1 Replies View Related

Lost In Procedures

Sep 18, 2007

This procedure is missing one importent piece is I need to have a customerID added to the invoice table.  The CustomerID comes from another table called Customer_Invoice_cart.  I don't know how to convert Customer_Invoice_Cart.CustomerID to a @CustomerID to add to the table. If there is anyone out there who is good at stored procedures (unlike me who is learning) could help me out.  FYI I realy cannot get the CustomerID for the .aspx page, it is not called any where.

procedure [dbo].[InvoiceAdd](    @EmployeeID int,    @CartID     nvarchar(50),    @OrderDate  datetime,            @OrderID    int OUTPUT)AS
BEGIN TRAN AddInvoice
/* Create the Order header */
INSERT INTO invoice(    employee_number,    invoice_date)VALUES(       @EmployeeID,        @OrderDate)
SELECT
    @OrderID = @@Identity          /* Copy items from given shopping cart to OrdersDetail table for given OrderID*/
INSERT INTO invoice_books(    invoiceID,     ProductID,    TaxID,    Quanatity,    UnitCost,    UnitPrice   )
SELECT     @OrderID,     Inventory_Invoice_Cart.InventoryID,     Inventory_Invoice_Cart.TaxID,    Inventory_Invoice_Cart.Quanity,    products.UnitCost,    products.UnitPrice    FROM     Inventory_Invoice_Cart   INNER JOIN products ON Inventory_Invoice_Cart.InventoryID = products.ProductID   
WHERE     Invoice_CartID = @CartID
INSERT INTO invoice_books(    invoiceID,    ServiceID,    Service_TaxID,    Service_Quanatity,    ServiceCost)
SELECT    @OrderID,    Service_Invoice_Cart.ServiceID,    Service_Invoice_Cart.TaxID,    Service_Invoice_Cart.Quanity,    services.price_leval1FROM     Service_Invoice_Cart   INNER JOIN services ON Service_Invoice_Cart.ServiceID = services.serviceID   
WHERE     Invoice_CartID = @CartID
/* Removal of  items from user's shopping cart will happen on the business layer*/EXEC Customer_Invoice_Cart_Empty @CartIDEXEC Inventory_Invoice_Cart_Empty @CartIDEXEC Service_Invoice_Cart_Empty @CartID
COMMIT TRAN AddInvoice

View 15 Replies View Related

Lost All SQL Data, Help !!

Aug 18, 2004

I used sql 2000 create a data base at home call 'Mysite' several months ago, there are about eight tables and 30 stored procedures. When I run my asp.net program at home yesterday, and found can't connect to database. The error as follow: "Cannot open database requested in login 'Mysite'. Login fails. Login failed for user 'MINGYANG-MSONXHASPNET'. "

When I open the database, very surpriced to found that my database was suspect and not any item inside it. The suspect database include CommunityStarterKit. But Northwind and pubs database still there?

What happen? Last week I just download new Norton antivirus software, does have any relationship with it? Does data really gone? How to solve this problem?

Please help me if you have these experience.

View 2 Replies View Related

Lost With SQL2005 Exp

Dec 31, 2005

What is the quivalent of EM for SQLExpress2005? With the old SQL 2000 I used EM to manage tables, SPs and such. Now, I cannot even find the databases - I installed the Club Starter Kit and I want to view and modify some tables. How do I do that?

View 3 Replies View Related

Am Completely Lost

Jun 10, 2006

Hello all let me first start out by saying I suck at SQL.  I can do quite a bit with ASP.NET but SQL Server is on area that has haunted me and I have finally decided to bite the bullet and figure this behamouth out.Well here is my first problem, which is the biggest reason I can't seem to understand SQL Server or dataases in general.To have a realtional database you set up tables with foriegn keys and primary keys referenceing the id's like product table has a product name and one of the columns is a user_id displaying the id number of the user in the user table.  From what I can tell you are supposed to set up the user_id in the products table a foriegn key to the Primary Key in the user table.   I may be totally wrong on this though.Now my biggest question is how do you retrive this information the proper way to get it ready to be displayed in a gridveiw or a datalist?  I have been reading SQL Server 2005 for developers and reading online tutorials and it seems like they say you need to set up a relationship and because of the realtionship you don't need to do a join, but I never hear how to use the relationship at all.Please someone help I am so totally lost that i feel like i will never understand. I have spent the last week trying to figure this out and I guess I am just googleing this wrong completely or i am incompentent one of the two.Thank you.

View 1 Replies View Related

LOST SA PASSWORD HELP!!

May 8, 2001

Hello all,

My company took over a project that another company was building. The other company switched all the passwords for the system and the database right before they left. No one has the passwords to the system or the database. Is there a way I can dump the data, or re-mount the drives into a different machine and get the data? Or am I just screwed? I have physical access to the machine and I can do anything needed I just need this data asap!!

TIA

Sean Silvius

View 3 Replies View Related

What If The Logfile(s) Are Lost?

Nov 27, 2000

Hi, maybe someone has some clues to the following situation. Suppose from a SQL 7 database, only the log .ldf files are lost. All datafiles are present. Suppose there is no backup of this database. SQL Server will put the database in the SUSPECT status. The following question is very interesting to me: Can one recover from this situation??? I ask this, because when datafiles are lost, it's obvious that you have lost data, but since the transaction log files are a "bit special", I just wonder how one can survive such a situation.
I know that IF a database has only ONE log file associated with it, and this one log file gets lost, SQL Server will create on startup a new log file. But with multiple log files, it does not behave in this sympathic manner. Is there perhaps any way to recover (for example, an undocumented dbcc command or so) ?
I surely will appreciate any tip or suggestion !! Thanks!!!

View 1 Replies View Related

Data Lost

Oct 22, 2000

We lost all the data we had in a table. We restored the db and the transaction log up to a point in time, but could still not recover the table. We eventually only do db restore without the transaction log. We recovered the data in the table in question, but lost all the data entered that particular day. Does any body have a solution or suggestion that can help? I will be greatly appreciated.

View 2 Replies View Related

Lost Identity Value On

Mar 19, 1999

Hi,
I face a different behaviour between SQL Server 6.5 and 7.0 regarding
the global variable @@identity.
I insert a row into a table with an identity column. This table has
an insert trigger attached which performs another insert into a second table.
Now I seem to lose the identity value (@@identity is NULL).

Example:
Take the following 2 tables:

create table a
(aaintnot nullidentity,
bbintnot null
)

create table b
(bintnot null
)
go

Table a has a trigger attached:

create trigger a_trigger
on a
for insert
as
insert b
select aa
from inserted
go


After this I execute the following SQL statement:

insert a (bb) values (1)
select @@identity


On 6.5 I get the result:
------------------------------------------
1

On 7.0 I get:
------------------------------------------
(null)

Which means that outside the trigger I have lost my identity value.
This feature of Version 6.5 I usually use to maintain
event logs. Using a trigger hides this maintenance nicely from the
application.
My question is now, is this a new feature of Version 7.0 or is it a bug?
BTW: The books online describe this behaviour in the case when the trigger
inserts value into a table with an identity property, which is not the case
in my example.

Regards
Marco

Marco Ruggli
ruggli_m@simultan.ch
Simultan P&I
Kantonsstrasse 1
6246 Altishofen, Switzerland

View 1 Replies View Related

Templog2.DAT Is Lost!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Aug 30, 1999

templog2.DAT and templog3.DAT were deleteed and now sql wont start. how do I recreate them with out a backup do I have any options? I will continue to monitor this site while I work on it. Please help.

View 1 Replies View Related

Datafile Lost

Nov 7, 2007

I lost my datafile , that's corrupted and I don't have database backup. Any idea ?:(

View 1 Replies View Related

SA Password Lost

Jul 14, 1998

Hi All,

I have lost the system administrator password for my test server which contains
inf. which I cannot afford to loose. The SQL server documents state that if
the password is lost , then a SQL re-installation will have to be done.

Is anyone aware of a way to reset the password for SA without reinstalling the
SQL server.

Matter is most URGENT.

Regards

Vedanth

View 5 Replies View Related

Help With Priviliages That Were Lost

Jun 18, 2006

Hey every one...I'm new here, and I feel rather bad just jumping in with out at least formally saying hi. However, I have a problem that I'm struggling with that I'm not finding an answer to via searches or through my library of books.

I'm sure it's basic, but I'm still new to the world of MS SQL, so please allow my naivety to MS SQL be forgiven.

I've been using MS SQL 2000 and 2005 on a Windows 2003 machine. However, I've been needing to be more mobile, I've been transferring some projects over to an XP pro lap top. There was a mild learning curve with .net with II5, because I've gotten spoiled with II6. However, that's fine.

It's just that when going through the procedure of attaching my databases from my Windows 2003 machine to my XP machine, I'm no longer able to log in, even though I've changed all the Connection string information.

On one database, it's not allowing me to use a stored procedure:

EXECUTE permission denied on object 'ViewSubscriptions', database 'la_market', schema 'dbo'

I know of general information concerning Owners of Databases and what not. However, when I tried to fiddle with granting dbo ownership (which i though DBO was just a general all purpose owner), it gave me other errors.

And on the other Database I'm getting absolutely no access to it what so ever (Once again, I've changed my connection string and everything)

Cannot open database "catalog" requested by the login. The login failed.
Login failed for user 'BUCKYCOREASPNET'.

Now, the problem isn't what I'm showing you here. Normally I have what it takes to find answers to these sort of problems. But with this one, I can't seem to phrase the problem correctly. So, advice would be wonderful. However, just phrasing the problem is good enough. So far I was told that my databases aren't mapped to my current Windows authentication. So, once again, just having some advice as to how to understand the problem will help. I may be new, but I'm enthusiastic and confident.

Thanks to any and all who may help...

View 1 Replies View Related

Lost Log File

Feb 6, 2006

I have lost LOG file, and I can not open database, (Error 5105) enterprise manager can not create database is it possible to not rewrite database ??
br

View 1 Replies View Related

MS SQL Lost LDF Need To Restore

Feb 5, 2007

Hey everyone,

I've run into a fairly big problem. Apparently, the automatic backup has not been working since September, and that backup is of no use to me.

What I'm trying to do is restore the database without using the transaction log file. I don't care about a dirty database or lost data. The data is all I need, and the database structure of course.

I've tried several things.

Right click on the <database> go to tasks->attach-> pick MDF file etc.

Following this guide The only problem is I get a different error message. It doesn't ask a yes no question it just says the file doesn't exist and it can't create the database.

I've tried running it from other SQL management software and removing the LOG file when attaching, and that doesn't work. I tried:

Code:

MS SQL

EXEC sp_detach_db @dbname = <my db name>
EXEC sp_attach_single_file_db @dbname = <my db name>, @physname = <my db mdf file>



and I get the same message pretty much.

I tried this but I can't seem to get the database into emergency mode.

Am at the end of my rope and I really need this up and running ASAP.

Although I'm not sure of the proper syntax for setting a database into emergency mode, I think the last link I provided might do the trick.

I also tried the following:
http://www.spaceprogram.com/knowled...file-on_12.html
But when I get to step 8, the database is not in a suspect mode. When I click on it it says the database is in accessible.

When I right click and click on properties I get:
Quote:
TITLE: Microsoft SQL Server Management Studio Express
------------------------------

Cannot show requested dialog.

------------------------------
ADDITIONAL INFORMATION:

Cannot show requested dialog. (Microsoft.SqlServer.Express.SqlMgmt)

------------------------------

An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.Express.ConnectionInfo)

------------------------------

Database 'BridgeTrak_Central2' cannot be opened due to inaccessible files or insufficient memory or disk space. See the SQL Server errorlog for details. (Microsoft SQL Server, Error: 945)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=08.00.0194&EvtSrc=MSSQLServer&EvtID=945&LinkId=20476

------------------------------
BUTTONS:

OK
------------------------------
I checked the server and there is enough memory and disk space, about 2GB on each drive. Should be plenty for my 32MB database.


It's not my neck on the line but I would like to see my coworker stay here.

If anyone here knows anything about this, that would be great.

MS SQL 2000
Windows Server 2000 SP 4

_Any_ help or suggestions, other than the obvious, make sure backups are working, will be greatly appreciated....

Did I mention greatly appreciated?

I think the issue is that the original database was lost when someone else was trying what I'm trying now. They're very delete happy.

I think they may be SOL... glad it's not me, then again I wouldn't use the delete key without making 100% sure it wouldn't screw things up...I especially wouldn't empty the recycling bin. I probably would have deleted a database already burnt to CD, or burned some to CD....or made sure my backups were working. Messy messy network state, last guy left it in a mess. New network/DBA/ if it's got a network cable attached you're responsible. :S I don't like this new company that much. Too stingy... Dual P2 server?!?!?! Isn't that like, antiquated? No wonder there have been 3 dba/network admins/"if it's got a network cable..." that have left in the past year.

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved