While Using SQL Server 2005 .Net Integration Are Dynamic Web References Allowed?

Apr 26, 2006

This is my problem: I have a dynamic web reference for a SQL Server UDF coded in C#, but I am unsure of where URL for the webservice is being read from.

I am working with SQL Server 2005 to create a User Defined Function, however I need to have a web reference to the SQLReportingService2005 web service. I will be distributing this function to my customers so I need this web reference to be dynamic.

Although the webservice says it is dynamic, I do not see a app.config file to place the changing URL. Does anyone know where a dynamic web service pulls the URL from in this case?



Thanks in advance,

Sean

View 1 Replies


ADVERTISEMENT

T-SQL (SS2K8) :: Building Groups Out Of References / Eliminate Cross References

Oct 7, 2014

I got the following problem to solve in TSQL. I don't want to use a cursor. But with the set based solution I am stuck.

Here is my problem:

DECLARE @tmp TABLE (CustomerID INT, CustomerLink INT, PRIMARY KEY(CustomerID))
INSERT @tmp
VALUES(100001,0)
,(100002,100001)
,(100003,100001)
,(100004,100003)
,(100005,100006)

[Code] ....

Desired result:

[CustomerID of a group member],[smallest CustomerID per Group]

|(GroupID)|CustomerID|CustomerLink|
|100001 |100001 |100001 |
|100001 |100002 |100001 |
|100001 |100003 |100001 |
|100001 |100004 |100001 |
|100005 |100005 |100005 |

[Code] .....

doesn't work for crossreferences :.(

RESULTSET:
CustomerID CustomerLink
100001 100001
100002 100001
100003 100001
100004 100001
100005 100005
100006 100006 --wrong

[Code] .....

View 9 Replies View Related

Full-text Allowed In SQL Server 2005

Apr 8, 2007

Hi,

I am putting this question here but I am not limiting it to sql server 2005 express edition.

I am developing an app on a local machine (winxp with sql server 2000 personal edition) however I came to find out that full-text does not work in this setup unless I use a server type machine.

This fouls up my development somewhat and I would like to know if there is
a) a work around for my sql server 200 setup
b) does full-text serach work in sql server 2005 express edition which I have installed on my PC ?

Thanks for any input on this issue.

Tuka

View 2 Replies View Related

SQL Server 2005 Remote Connection Not Allowed Error 26

Jan 11, 2008

Help!  My web-application worked fine last week.  I have made some enhancements and it still works fine when I test in locally in VS 2005 and from IIS when I allow unauthenticated users (by commenting out "<deny users="?"/>" in my web.config.  However, with not allowing unauthenticated users, I get redirected to a login application (which also worked last week), where I supply one of several user names and passwords and it is supposed to redirect me back to my default.aspx page.  Only, now it is taking the authentication parameters from the login screen but is not redirecting me back to my app's page and instead is putting up this Error 26 that states SQL Server 2005 does not allow remote connections. 
The included stack trace has no information about what server it seems to be trying to connect with, but the strangest thing about it is I/we are not using SQL Server 2005 yet (still a future upgrade not too far off).  The application database, the authentication aspnetdb database, and the Session aspstate database are all on the same SQL Server 2000 managed server.  And, these were all working last week (and are all accessible).  I have not changed any connection strings and as I said, it works fine without the loging in part both locally and from IIS.  It is only when using the Login in application, which is working with other apps and the developer insists the problem has to in my application (after all the first line of the error message states:  Server Error in '/deployment1' Application, which is my app!) 
I am lost in finding the culprit, can someone please give me some ideas?
  

View 2 Replies View Related

Versions Of Windows Allowed For SQL Server 2005 Developer Edition

Jul 8, 2007

Hi, I am going to get a new laptop and was wondering in particular which versions of Windows Vista will run SQL Server 2005 Developer Edition. I want to be able to use all the features of SQL Server 2005, so IIS is needed for example ( I will be building end to end BI soutions using SQL Server Management Studio, SSIS, Analysis Services and Reporting Services.


Chris

View 13 Replies View Related

Security Question - SQL Server 2005 Express - List Of Allowed IP Address's

Aug 2, 2007

 Hi All,

I have noticed in the database logs that someone is trying to log
into our SQL Server express databases, is there a way of allowing only IP
address on a list to access the database. We really only need the local machine
and the office using SQL Express management studio to access the database.

I would appreciate any help sometimes the database runs very
slow and we do not know what is causing this.

We are running server 2003 and SQL Server express.

Thanks in advance.

Lee

View 1 Replies View Related

AS 2005 References/Books

May 4, 2007

Hi All -
I have come across the need to use a cube in AS 2005 for an application.  Unfortunately this will be the first time writting an ASP.Net application which uses one.  I was wondering if any of you had any good books or references that I could look at to get an idea of how I should approach this issue. 
Thanks in advance.

View 2 Replies View Related

Subqueries Are Not Allowed In This Context. Only Scalar Expressions Are Allowed.

Jun 17, 2004

Hi, I was trying to run an insert statement which has subquery, But it is returning the error like this..
Subqueries are not allowed in this context. Only scalar expressions are allowed.
--------------
Is there a way to reparse the insert statement without have to assign the subquery to a temp value and insert it?
thanks..
Here is my SQL..
insert into admincriteria values (nextID,(select id from nodetable where description like 'Example - Quality Analytics'),8071,2,'Failures by Customer',2,0,0)

View 14 Replies View Related

Integration Services :: Creating Dynamic Server Tables Through SSIS As Per XML Data Files Metadata

Feb 15, 2011

I have a scenario, need to create SQL server Tables dynamically.

I Have multiple xml data file on a particular location, and want to load those XML data into sql server tables, but he metadata of each xml data files are not same.

Hence the approach is that,

1. Pick first file from that location
2. Create a table according to that xml data file metada
3.  load data on newly created table.  
4. Pickup the next xml data files.
5. loop through, till the XML data files are exists on that location.

View 4 Replies View Related

Sql Server For Oracle Developer And DBA - References

Jan 28, 2007

Hi all,

Would anyone know of any references (online or books) that make it easier for experienced Oracle people to Learn SQL Server. The type of things I'd like to know for example are

The environment for SQL server on a PC (e.g. where the
datafiles are, what's the replacement for tnslistener - general architecture info)

Any significant differences that I'd need to know for creating tables and applications, like what do I use instead of varchar2 for example.

that should get me started.

tia,
Dave

View 1 Replies View Related

OpenRowSet Fails In SQL 2005 Even When Ad Hoc Allowed

Oct 25, 2006

I have a Windows 2003 64-bit server running SQL 2005. I am trying to run an OpenRowSet query, but I am getting ""cannot create instance of linked server" (null)" The OpenRowSet I am trying to run was running perfectly fine on the same machine before we moved to SQL 2005 and runs fine on many other machines - so I do not think it is an issue with the openrowset itself.

When I've had his issue on other machines, I have run the following:







sp_configure 'show advanced options', 1;

GO

RECONFIGURE;

GO

sp_configure €˜Ad Hoc Distributed Queries€™, 1;

GO

RECONFIGURE;

GO

And I could then run the Ad Hoc queries fine. But, when I try on this machine, I get the SQL error message:

"The configuration option does not exist, or it may be an advanced option."

I looked at the settings in SQL Server Surface Area Configuration and Ad Hoc was selected; so it should be working. I am logged in as Administrator and have sysAdmin permissions in the SQL database. I'm not sure where else to look or what I am missing.

I've looked many places on the web and have tried many 'solutions' without effect.

Any thoughts??

View 5 Replies View Related

SQL Server 2014 :: Left Join With 2 References

Sep 8, 2015

I need to join 2 tables but the join needs to account for 2 seperate columns.

for example:

select
a. type
a. prod_code
a. prod_type
b. division

from table1 a
left join table2 b
on a. prod_code = b. prod_code
and a. prod_type = b. prod_type

The issue is that you may have only the prod_code or prod_type and null value for the other in table1.

Ideally I want it to check for both then if 1 isn't available then it draws the division of the available. having both or one or the other determines the division it falls under.

View 5 Replies View Related

Looking For References For Querying Active Directory (AD) Through SQL Server

Sep 11, 2007


Does anyone know of any good references (books or web sites) that provide examples of querying AD from SQL Server? I have the database link setup and have done two very simple queries against AD but I would like to see more in-depth examples.



Thanks.

View 1 Replies View Related

SQL Server 2012 :: Foreign Key References Multiple Tables

Feb 12, 2014

Is there any possibility to create a foreign key references more than one tables.

say for example,
Create table sample1(id int primary key)
Create table sample2(id int primary key)

Create table sample3(
id int primary key,
CONSTRAINT fk1 FOREIGN KEY REFERENCES sample1 (ID),CONSTRAINT fk1 FOREIGN KEY REFERENCES sample2 (ID))

this shows no error while creating, but in the data insertion it shows error..

View 8 Replies View Related

Parameter Passing In SQL Server 2005 Integration Services (SSIS) 2005 From VB.Net2005

Sep 7, 2007

Is it possible to parm in a value to a SSIS

in my SSIS i have a variable;

Name : FileName
Scope : PackageName
Type : String

Value : ""

I have tried adding the following code in my vb.net project ;

pkg.Variables("filename").Value = "C: emp estfile.001"
pkg.execute()

but come up with the following error

A first chance exception of type 'System.MissingMemberException' occurred in Microsoft.VisualBasic.dll
Public member 'Variables' on type 'IDTSPackage90' not found.

can anyone help ?

View 11 Replies View Related

Parameter Passing In SQL Server 2005 Integration Services (SSIS) 2005

Jan 16, 2007

Hi All,

Parameter passing in SSIS 2005 sometimes appears to be a cumbursome task. I have been digging into this topic for quite some time and here i note down some simple steps to demonstrate parameter passing at Package level.

(1) Create a SSIS project using Business Intelligence 2005 Or VS 2005.

(2) Create datasource (.ds) and Data Source View as required.

(3) A default SSIS Package by the name Package.dtsx is created. Double click this and you are shown tabs for Control Flow, Data Flow, Event Handlers, Package Explorer. On the Control Flow, drap and drop Execute SQL Task from Control Flow Items in the toolbar.

(4) Lets now create a variable at Package level. Right click anywhere in the control flow box (not on the Task created in Step 3 above). Click on the Variables on the context menu displayed. Variables window appears on the left of the screen. Click the Add Variable box in this window to create a variable. Name it var1 (or whatever you may like), Scope as Package, DataType as String and Value as MyValue. This is only the default value.

(5) Now let us edit the SQL Task created in Step 3. Double on it, on the General tab you can change its Name, Description. Set ResultSet as None. We shall proceed to execute a stored procedure by name MySPName and pass it a parameter. Set ConnectionType as OLE DB. Select the connection you creates in step 2. Set SQLSourceType as Direct input. SQLStatement as MySPName ? . Note the ? mark after the name of the stored procedure. This is important to accept the variable value (var1) created in Step 4.

(6) Select Parameter Mapping tab now. Click on Add button. Select the Variable Name as User::var1. This is the user created variable of Step 4. Select Direction as Input, DataType as Varchar and Parameter Name as @var1. Click on OK now.

(7) This sets up the basic of parameter passing. Compile the project to verify everything works. Right Click on the SQL Task and select Execute Task. This will execute the package taking default value of the variable. This can be used along with dtexec command with /set option to pass the parameter at command prompt.





View 5 Replies View Related

SSRS 2005 - Email Report On Execution To Dynamic List With Dynamic Parameters = No Schedule

Nov 23, 2007

Hi,
I have a need to display on screen AND email a pdf report to email addresses specified at run time, executing the report with a parameter specified by the user. I have looked into data driven subscriptions, but it seems this is based on scheduling. Unfortunately for the majority of the project I will only have access to SQL 2005 Standard Edition (Production system is Enterprise), so I cannot investigate thoroughly.

So, is this possible using data driven subscriptions? Scenario is:

1. User enters parameter used for query, as well as email addresses.
2. Report is generated and displayed on screen.
3. Report is emailed to addresses specified by user.

Any tips on how to get this working?

Thanks

Mark Smith

View 3 Replies View Related

SQL Server Admin 2014 :: Policy Management - Table References In Stored Procedures

Feb 3, 2015

Is there any way to enforce table references in stored procedures? For Example, we have stored procedures with a ton of different formats, "dbo.table", "table", "db.dbo.table", etc. Can we make it so that for every stored procedure, the reference must be at least "dbo.table"?

View 1 Replies View Related

SQL Server 2005 Dynamic Pivots

Aug 20, 2007

I'm trying to create a dynamic pivot table, with changing column headers eg. dates!!? how can this be done when you have to define the headers names in the query!

More info availible if any one can help!!

thanks for your time

View 2 Replies View Related

Best Practice To Pull Data From Sql Server 2000 To Sql Server 2005 With Dynamic Queries

May 3, 2007

Hi There,

I need to pull data using input from one table in sql server 2005. I have to query against the sql server 2000 database and pull data into sql server 2005. I have a list of ids that I have to pass to a query to get the desired data. What is the best practice for this. Can I use SSIS or do I need to build an app in C#? Can somebody please reply back?

Thanks a lot!!

View 4 Replies View Related

Dynamic List Of Tables In Integration Services

Apr 27, 2006

I need to report on data from several databases on several servers. They are all SQL Server 2005 databases. I am trying to created an Integration Services task to consolidate and transform this data for easy reporting. The problem I am having is one database in particular. It has tables like this:

tblLookupData_Customer1
tblLookupParseData_Customer1
tblLookupData_Customer2
tblLookupParseData_Customer2
tblLookupData_Customer3
tblLookupParseData_Customer3

I want to use only the tables of the form "tblLookupParseData*" for this list. I can do this in Stored Procedures by dynmacally building up the sql query. I cannot find out how to do this in Integration Services. When I make Datasource Views, they seem to expect me to pick from a list of known tables. This list of tables grows as Customers are added to the system.

NOTE: The way the tables are structured was NOT my idea. I hate storing "data" in the structure of the database. Many people also do this when they create "period" tables such as "CustomerData_05_2005". It speeds up writing the data, and querying a specific table, but it is a nightmare for reporting. I cannot change this as it is not in my responsibility.

View 1 Replies View Related

Integration Services :: Dynamic Creation On DataBase

Jul 31, 2015

I have a reqirement where in i need to create a Database dynamically in SSIS, Database name is given in table.

View 5 Replies View Related

What Is The SQL Server 2005 Dynamic Port Range?

Jan 26, 2007

Hi,

I'm setting up my SQL Server 2005 instances to use dynamic ports on one of my machines. What is the tcp port range used? I need to know the range so I can open the correct ports on my firewalls.



Thanks

Brian

View 4 Replies View Related

Integration Service In SQL Server 2005

Jul 14, 2006

Hello,

I try to import a directory with pdf-files in the SQL Database.
How can I do this using the Integration Service? I can't
find suitable data sources.

I would be very pleased to get well informed answers.

Yours sincerely

View 1 Replies View Related

C# Express Vs CLR Integration With SQL Server 2005

May 12, 2006

Hi,

I wonder if it is possible to use the Express edition of C# to write CLR procedures?



Regards

/Mattias

View 1 Replies View Related

Database Integration Into Sql Server 2005.

Feb 26, 2008

I am new user of sql server 2005. I want to integrate my old database which is in sql server 2000.
What steps should I follow for this integration of database..

Plz Help me on this..

Thanks.

~ Charp.

View 7 Replies View Related

Integration Services :: Flat File With Dynamic Columns

Aug 31, 2015

I will be receiving a CSV daily where columns within the file will change. The column order and number of columns can change daily. I need a way to read in the header from the csv and create a flat file connection that reflects the columns listed in the header.  

Is there an easy way to do this using a script task? I have already read the header into a table but I have been unable to create the dynamic file connection.

View 4 Replies View Related

Integration Services :: Importing A File With Dynamic Columns

Jul 16, 2015

I am new to SSIS and C#. In SQL Server 2008 I am importing data from a .csv file. Now I have the columns dynamic. They can be around 22 columns (some times more or less). I created a staging table with 25 columns and import data into it. In essence each flat file that I import has different number of columns. They are all properly formatted only. My task is to import all the rows from a .csv flat file including the headers. I want to put this in a job so I can import multiple files into the table daily.

So inside a for each loop I have a data flow task within which I have a script component. I came up(research online) with the C# code below but I get error:Index was outside the bounds of the array.I tried to find the cause using MessageBox and I found it is reading the first line and the index is going outside the bounds of the array after the first line.

My File1Conn is the flat file connection instead I want to read it directly from a variable User::FileName

using System;
using System.Data;
using Microsoft.SqlServer.Dts.Pipeline.Wrapper;
using Microsoft.SqlServer.Dts.Runtime.Wrapper;
using System.Windows.Forms;
using System.IO;

[code]....

View 8 Replies View Related

Integration Services :: Dynamic Email Subject Line

Aug 6, 2015

I have the variable @Monthname defined as shown below:

(MONTH(getdate()) == 1 ? "January" : MONTH(getdate()) == 2 ? "February" : MONTH(getdate()) == 3 ? "March" : 
 MONTH(getdate()) == 4 ? "April" : MONTH(getdate()) == 5 ? "May" : MONTH(getdate()) == 6 ? "June" : 
 MONTH(getdate()) == 7 ? "July" : MONTH(getdate()) == 8 ? "August" : MONTH(getdate()) == 9 ? "September" : 
 MONTH(getdate()) == 10 ? "October" : MONTH(getdate()) == 11 ? "November" : MONTH(getdate()) == 12? "December":"")

By itself, it is working fine. I am attempting to have the @SubjectLine variable display the below:

CA - TFL for the month of August 2015

I am using the expression below in the expression builder:

"CA - TFL for the month of " + @[User::MonthName] +  (DT_WSTR,4)YEAR(GETDATE())

When evaluating the expression, I get the below (month is missing):

CA - TFL for the month of 2015

View 2 Replies View Related

Integration Services :: Dynamic Password In FTP Task In SSIS?

Dec 31, 2013

I can set almost all properties of FTP task and FTP connection manager using expressions option. In that option, I don't see that I can set FTP PASSWORD using a variable. How do I set the password dynamically?

View 2 Replies View Related

Integration Services :: Dynamic Query For Lookup Transformation

Nov 3, 2015

In my package I am using lookup to get new and similar record. I want to filter the rows for Lookup Reference Data Set by using Variable Value.

I have created variable @[User::CustId] with Int32 datatype, having default value 2 when I am trying to evaluate below query I am getting error 

"select CustId,PartNm,LocId,LocTyp from loc where CustId= "+ @[User::CustId] 

Error. The Data types "DT_WSTR" and "DT_I4" are incompatible for binary operator "+".

The operand types could not be implicitly cast into compatible types for the operation. To perform this operation , one or both operands need to be explicitly cast with the operator.

View 2 Replies View Related

What Is DT_UI8 Equivalent Data Type In SQL Server 2005 For Integration Server

Aug 13, 2007

Hello,
I'm trying to build a integration service package importing data from XML files and directs this data to different MS SQL server 2005 Database tables.
Can someone suggest me what is equivalent(mapping) data type of DT_UI8 in Sql server 2005 for Integration Services.

Or how to consume DT_UI8 fields in SQL server 2005.

View 2 Replies View Related

SSIS - SQL Server Integration Services Errors. SQL Server 2005

Nov 8, 2006

I created an SSIS package for a client that does data importing. When I run the pacakge from Visual Studio there is an error window showing all the errors and warnings. A good example of an error is if the import file is in the wrong format.When there is a error or warning can I write the error log to a file OR notify someone of the errors so they can make corrections and rerun the package OR any ideas that the client can find out what went wrong and then make corrections accordingly? Thanks

View 1 Replies View Related







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