Transact SQL :: Top N By Catalog
Aug 1, 2015
I need the Last 3 (by Date) process Keys , by Catalog and Process_ID. The ID column is an incrementing identity column unique to this table. Process_ID and Process Key are keys to other tables. I need some tips to get started.
ID dt Catalog Process_ID Process_Key
90604 7/31/2015 24274037 5792 44978
90605 7/15/2015 24274037 5794 44885
90606 6/15/2015 24274037 5794 44889
90607 7/16/2015 24274037 5795 9239
90609 7/16/2015 26082 10560 37808
[Code] ....
View 5 Replies
ADVERTISEMENT
Oct 29, 2015
I am having troubles to change an owner of a full text catalog. I am the owner of the database. I am doing this:
USE database;
ALTER AUTHORIZATION ON Fulltext Catalog::[ftrow_code_lookup_catalog] TO [dbo];
Catalog information:
Logical Name: ftrow_app_facility_catalog
FileGroup: ftfg_app_facility_catalog
But I get an error:
Cannot find the fulltext catalog 'ftrow_app_facility_catalog', because it does not exist or you do not have permission.
View 2 Replies
View Related
Oct 23, 2014
"SSIS 2012 Catalog doesn't have option to give read access to SSIS Catalog to view package run reports" ... Any luck allowing power developers / operators access to READ the SQL 2012 SSIS Execution Reports without granting them SSIS_Admin or Sysadmin?
According to this link posted back in 2011 (w/ Microsoft's feedback in Nov 2011: "We’re closing this issue as “Won’t Fix.” At this point the bug does not meet our bar for resolving prior to SQL Server 2012 RTM. As we approach the SQL Server 2012 release the bar for making code changes gets progressively higher." URL....Regarding Permissions to SSIS Catalog, here are the findings. We can give access in three ways:
1. READ Access – We can provide a user db_datareader access. With this the user can see the objects within the SSIS catalog database, but cannot see the reports.
2. SSIS_ADMIN – Add the user to this database role in SSISDB. With this the user can view the reports. But it also provides them privileges to modify catalog information which is not expected. We can add it using below script EXEC sp_addrolemember 'ssis_admin' , 'REDMONDPAIntelAnalyst'
3. SYSADMIN - Add the user to this server role. This will make the user an admin on the SQL server. This is not intended. Is there any method available which will have provision to give read only access to see SSIS Catalog package execution reports and not having modify Catalog access.
View 1 Replies
View Related
Jun 28, 2001
In SQL 6.5, what is "system catalogs"?
View 2 Replies
View Related
Apr 22, 2008
Hi,
When i execute this query
SELECT *
FROM INFORMATION_SCHEMA.SCHEMATA
WHERE SCHEMA_NAME = 'a424465';
I can see the..
CATALOG_NAME SCHEMA_NAME SCHEMA_OWNER ...
schema1 schema2
I wanna change the SCHEMA_OWNER to be schema1...
How can be done???
Plz Help me ASAP..
View 1 Replies
View Related
Sep 27, 2007
Hello, this is Subhani .
I am installing Sql 2005 standard version.
The problem is that while I am installing Sql 2005 the two warning messages are given that com plus catalog requirement? & minimum hardware requirement? So please suggest me, what I have to do to install successfully
View 2 Replies
View Related
May 22, 2007
Is there any way to access catalog views, such as sys.backup_devices, using a select statement from inside a sored procedure?
View 28 Replies
View Related
Sep 29, 2004
I am building an intranet application for my company .. similar to code generator
I am developing ASP.NET Application for this
1) How do I display list of SQL Server on the Network
2) Once I have list of SQL Server, I asked user to select once of the Server, provide credential for that server and obtain list of Database for that Server
3) Once I have list of Database, I need list of table under particular database
How do I do this in ASP.NET Application ?
View 2 Replies
View Related
May 16, 2000
I recently completed a Data Dictionary for our internet store.
I have now been asked to make a catalog of all the stored procedures.
Does anyone know how I should go about this. Or have any suggestions.
I would greatly appreciate any input you may have.
Thanks,
Dianne
View 1 Replies
View Related
Apr 8, 2000
I want to create a full-text catalog.But when I entered the catolog's name 'softonline' and put the yes button,the system always prompt me the words "An unknown full-text failure (80004005) occurred in function CreateCatalog on full-text catalog 'softonline'". How can I do? Thank you very much.
View 1 Replies
View Related
Oct 20, 2000
Hi Everybody,
Can anybody tell me what is Database Diagram or Object Diagram?. I have seen this word in one of the questions in this Discussion Board.
And also anybody can say what is Catalog?. One of my friend saying it is nothing but Master DB. Is it so?.
tks in advance,
Madha
View 3 Replies
View Related
Sep 28, 2004
Hey there,
I'm trying to run the following query:
if exists(select * from shistory.dbo.sysobjects where name='STOCK_815')
drop table [shistory.dbo.STOCK_815]
and I get the error:
"Cannot drop table 'shistory.dbo.STOCK_815', because it does not exist in the system catalog."
The table IS there, DOES exist, but I cannot run that query. The only way I can run it is by changing the name of the table to
STOCK_815 like this:
if exists(select * from Stock_History.dbo.sysobjects where name='STOCK_PRE_815')
drop table [STOCK_PRE_815]
Why?
Thx
View 12 Replies
View Related
Nov 7, 2012
I came across the following error message while backing up a database:
The backup of full-text catalog 'myCatalog' is not permitted because it is not online.
Changing the status to RESUME for full-text catalog "myCatalog" (5) in database "myDB"
View 1 Replies
View Related
May 14, 2008
Hi
I'm not a sql server savvy, so I need assistance on the following two scenarios:
A customer runs a script like this (slightly larger, but I ripped away the meat)
---------------------------------------
create database test_database
go
USE [test_database]
exec sp_changedbowner 'sa'
use master;
go
sp_grantlogin 'server01CUSTOM_ADMIN';
go
use test_database;
go
-- lots of table creations, where one of the tables are TEST_TABLE
sp_addrole 'ADMIN_ROLE';
Go
sp_grantdbaccess @loginame = 'server01CUSTOM_ADMIN', @name_in_db = 'USER_ADMIN';
go
sp_addrolemember @rolename ='ADMIN_ROLE' , @membername = 'USER_ADMIN';
Go
GRANT SELECT , UPDATE , INSERT , DELETE ON [dbo].[TEST_TABLE] TO [ADMIN_ROLE]
GO
---------------------------
Now, if a person is added to the server01CUSTOM_ADMIN group, he/she should be able to do the following: (let's say it's a he)
- Create a test.udl-file (win xp). Set a provider to sql server.
- On the connection-tab enter hostname of database server in the Data Source-field and use windows NT Integrated security.
- When he now test the connection, it should work, since he has access to the database.
- Also, using the dropdown "3. Enter the initial catalog to use:", he should see SOME datatables. Not ALL, not none. The ones that he has access to.
So, if TEST_DATABASE is the only access that server01CUSTOM_ADMIN has, that database and only that one should show, right?
In my customers scenario, some databases show (irrelevant ones), but not TEST_DATABASE. In my test, I still get ALL databases. Even after I rip the guy out of the Administrators-group and Users-group. He's only a member of the CUSTOM_ADMIN-group on server01. "Test connection" succeeds, and all the databases on the server shows.
What I hope for is following questions like "He's probably sysadmin, check it" etc, so that I can systematically (using your brains) filter out the reasons for these scenarios to happen.
Thanks in advance.
View 3 Replies
View Related
Jul 20, 2005
Hello,I am relatively new to SQL Server, although I have used Oracleextensively.In Oracle, there are system tables that you can query in order to geta list of all schemas and all the tables in them. Is there a similarconcept in SQLServer? How would I find about the system dictionarytables?TIA :-)
View 2 Replies
View Related
Apr 17, 2007
Hi,
Can anyone tell the advantage of using the new catalog views over the traditional system tables which were given as compatiblity views in sql server 2005
View 3 Replies
View Related
Apr 25, 2007
I'm not sure how to go about setting this up, please assist?
I need to replicate a survey database. With each new survey, a new table is created within the database. I only need to replicate the new survey table to a remote database. I tried using SQL Server Replication but the catalog is fixed and if a new table is created, it will not be selected as part of the tables to be replicated.
My setup for both locations are:
Windows 2003
SQL Server 2005
View 6 Replies
View Related
Mar 19, 2007
Hi Experts:
Do users will still have access to the FullText catalog while the catalog is optimized (not rebuilt)?. My assumption is that they should have the access. Can anyone please confirm?.
Thanks
AK
View 2 Replies
View Related
Oct 15, 2007
Hi All,
I have a requirement where in for a given View name, I need to programatically find out all the tables that are used in the view and I also need to find out how each table in the view is linked.
For example, if I create a simple view like
CREATE VIEW XYZ AS
SELECT *
FROM TableA
INNER JOIN TableB ON TableA.ID = TableB.FKID
INNER JOIN TableC ON TableA.ID = TableC.FKID
I need to find out all the Tables involved in the view i.e. TableA, TableB and TableC. I also need to find out how TableA and TableB, TableA and TableC are linked (i mean the join Condition).
Could some one please point me to resources that can help me find the answer to this.
Thanks in advance
BK
View 4 Replies
View Related
Aug 20, 2007
I have a SQL 2005 Express installed in my machine and when I try to access it with the following Connection String:
Driver={SQL Server};Server=.SQLEXPRESS;initial catalog=xx;user id=xx;password=xx
I connect, but when I try to access any table from this database I get an error indicating that the object doesn't exist and if I use the fullname xx.table I get no errors.
What may be happening?
Thanks in advance
View 4 Replies
View Related
Jul 17, 2006
I'm trying to connect to VSS from my CLR procedure.
I'm getting this error..
Assembly
'microsoft.visualstudio.sourcesafe.interop, version=5.2.0.0,
culture=neutral, publickeytoken=b03f5f7f11d50a3a.' was not found in the
SQL catalog.
I added reference to VSS dll by opening the project file in notepad, as I couldn't right-click and do an add reference.
Here's the code...
using System;
using System.Data;
using System.Data.SqlClient;
using System.Data.SqlTypes;
using Microsoft.SqlServer.Server;
using Microsoft.VisualStudio.SourceSafe.Interop;
public partial class StoredProcedures
{
[Microsoft.SqlServer.Server.SqlProcedure]
public static void PrintToday()
{
try
{
//' The SourceSafe INI file.
string iniVssPath = "C:/CLRVSS";
//' The SourceSafe User ID/Password.
string cVSSUserName = "Admin";
string cVSSPassword = "";
VSSDatabaseClass vssLib = null;
vssLib = new VSSDatabaseClass();
vssLib.Open(iniVssPath, cVSSUserName, cVSSPassword);
VSSItem VSS_Item = vssLib.get_VSSItem("$/Test", false);
VSS_Item.Destroy();
SqlPipe p;
p = SqlContext.Pipe;
p.Send("success");
}
catch
{
SqlPipe p;
p = SqlContext.Pipe;
p.Send("error");
}
}
};
View 3 Replies
View Related
May 21, 2008
I want to develop a windows application using cshap 2.0 and sql express 2005. How can i attach a full text catalog in csharp? How can i deploy full text catalog to the client machine?
View 2 Replies
View Related
Oct 21, 2006
Once I add new data I can only get search results to return if I rebuild my fulltext catalog, how do I stop this?thanks-c
View 2 Replies
View Related
Jan 4, 2007
I need to develop a strong licensing solution based on the database accessed...
Currently our solution is easily hackable because the the license information is kept in the database of your choice and is not dependant on some static information, the current encryption key is static and kept in the software so it can be hacked easily. What i want to do to change this is simple in nature but i don't know how to get that one particular info i need.
I want to get some kind of unique identifier for a database (catalog) that sql server could generate. This info must be static and must not be movable. If for example, someone would backup and restore, this information would not be transfered with the backup. Thus, a user that backups his database and restores it on another database server or another database catalog even on the same server would corrupt his license since the Unique ID returned by the SQL Server would be different; the hashing code would change and thus the decryption would fail.
Is there any such info i can query using SQL that will not require admin rights?
View 2 Replies
View Related
Jul 9, 2005
I am trying to connect to a full text catalog in SQL. How do I do that? I tried using the same format as connecting to a table but it did not work.
View 1 Replies
View Related
Oct 13, 2000
When restoring a database that contained a full text catalog to another server I noticed that the full text catalogs were not restored. However, the system tables still had the information on these catalogs. As such, I couldn't delete the catalogs (because they didn't exist).
In the end, I deleted the relevant lines from the system table sysfulltextcatalogs and sysobjects and then built a new set of catalogs. Obviously this isn't ideal.
I am restoring databases to a backup/standby server on a regular basis and was wondering if there are any official/documented methods of restoring full text catalogs to another server. (i.e. without having to mess around with the system tables). There doesn't seem to be much in BOL.
Any pointers or ideas on this would be welcome.
Regards,
Karl
View 1 Replies
View Related
Oct 30, 1998
I got the following error msg last night, in fact running anything in a query window. My solution was to stop and restart the SQLServer, but not ideal in a production environment. Anyone know what the cause/solution could be?
TIA, Neil
sg 910, Level 17, State 1
Could not allocate a new object descriptor for required system catalog in database '1'. Another database must be closed or objects in another database dropped in order to open this database.
Msg 2812, Level 16, State 4
Stored procedure 'sp_who' not found.
View 1 Replies
View Related
Jul 25, 2012
Write a select Statement that selects all of the columns for the catalog view that returns information about foreign keys. How many foreign keys are defined in the AP database?
View 4 Replies
View Related
Mar 4, 2004
I have a database which has (god knows how) ended up with a Full text catalog which is believes is on the E: drive of the machine. The problem is that machine only has C: drive.
If I try and rebuid the catalog (sp_fulltext_catalog 'documents','rebuild') I get an error saying that e:... doesn't exist.
If I try and drop the catalog (sp_fulltext_catalog 'documents', 'drop'), I can't because it contains a full-text index.
If I try and drop remove the full text index from the table (sp_fulltext_table 'tbl_upload','drop'), I can't because Full-text catalog has been lost. Use sp_fulltext_catalog to rebuild and to repopulate it.
HELP
Does anybody know how to either drop it so that I can recreate it or how to update it so that it looks at a disk that the machine actually has?
View 1 Replies
View Related
Oct 3, 2014
I am running a package in the catalog. The package contains a c# script that uses FTP webrequest. It runs fine in SSDT. Trying to execute from the catalog the ftp list directory is timing out.
This seems to be a firewall issue. We have tried adding an exception for dtexec, but that did not . I am thinking another program runs the package, maybe ISServer.exe?
Any program that would need the firewall exception to run the package in the catalog?
View 6 Replies
View Related
Jul 24, 2007
We have implemented a SQL Server 2005 Full Text Search solution with realtime updates to the catalog.
Is it a best practice to rebuild the entire catalog periodically?
I have been searching for best practices on this but without success. Any links to best practices for this sort of thing much appreciated.
Thank you
View 3 Replies
View Related
Oct 30, 2007
Hello Everybody,
I have a really strange problem and i need your advice...
in one line:
creating full-text index bring to Rank = 0 when running FreeTextTable (although it shouldn't be).
in details:
when creating a new catalog on defining full-text index process, I finish the process successfully and then run a query (FreeTextTable) on the first time i get rank = 731, and after that get always rank=0. after checking every option in this process, try to use old catalog (belongs to different full-text search) it works perfectly.
does anyone has a clue?
thanks in advance,
Omer
View 2 Replies
View Related
Mar 11, 2008
Hi,
What catalog table has the number of rows of a table ?
View 11 Replies
View Related