Data Is Not Refreshing On The Databse Server With 64 Bit

May 30, 2008



Hi,

Recently we upgraded the SQL sever from 32 bit box to 64 bit and we encounterd some weird results like data was not refreshing unless we manually does a manually refresh.

we just ran some migration scripts from another server to the new 64 bit server and script is correct only thing problem is with data refreshing.

Please send me the solution for the problem and let me is there any script that we can refresh the database using tsql command???

Thanks in Advance,
Shiva.

View 2 Replies


ADVERTISEMENT

Read Data From A Csv File And Insert It In A Sql Server Databse Table

May 25, 2007

Hai Everbody,
           for me in my project i want to read data from a csv file and insert it in a sql server databse table.The csv file may contain n number of columns,but i want only certain columns from that, and insert it in the database table.How to achieve this. Plz help me it is urgent. Thanks in advance.
        Thanks and regards
               Biju.S.G

View 1 Replies View Related

Exporting Databse Table Data In SQL Server 6.5 Into Text Files

Mar 11, 1999

Hi,

I have to export the table data from my databse into text files as I nedd to put it in Informix database using a sheel script. Is there a way by which I can do this.

Is there any other way by which I can put the data from SQL Server to Informix.

Any takers,

Thanking you in advance.

Bye for now,

Himauhu

View 1 Replies View Related

Refreshing Data In GridView

Sep 18, 2006

Hi,I’m new to SQL Express, but I have created a table and a stored proc to populate it.I have dragged the table into a form so I can view the data in a GridView.I have added a button to add new rows to the table. All the above works fine, except when I hit add, the data gets added, but the GridView doesn’t update and show the new data.  Is there some code I can add to the add button that also refreshed the GridView? ThanksMike

View 2 Replies View Related

Refreshing Data In The Cursor.

Nov 17, 2006



Hello everybody,

I wrote a stored procedure for SqlServer 2000 and i am using it for paging purpose.
The procedure is as follows :

set ANSI_NULLS ON
set QUOTED_IDENTIFIER ON
go
ALTER PROCEDURE [dbo].[OLAP_PagedRows]
(
@SelectFields nVarchar(2000) =NULL,

@GroupByFields nvarchar(1000) =NULL,

@BaseTable varchar(100),

@KeyColumn nvarchar(200)=NULL ,

@JoinTables varchar(500) =NULL,

@ConditionalClause varchar(1000) =NULL,

@Pagesize int = 10,

@PageNumber int =1,

@SortExpression nvarchar(200)=NULL,

@SearchText nvarchar(200)=NULL

)

AS

BEGIN



DECLARE @SQLSTMT NVarchar(4000)

DECLARE @SQLSTMT1 NVarchar(4000)



SET @SQLSTMT1 = ''

--check whether page size is given null or not, if so set to default value

IF @Pagesize IS NULL OR @Pagesize = ''

BEGIN

SET @Pagesize =10

END

--check whether page number is given null or not, if so set to default value

IF @PageNumber IS NULL OR @PageNumber = ''

BEGIN

SET @PageNumber =1

END



--Start constructing the query --

SET @SQLSTMT = 'SELECT '

SET @SQLSTMT1 = 'DECLARE @CountValue INT SELECT @CountValue = count(*) From '+@BaseTable

SET @SQLSTMT = @SQLSTMT + @SelectFields + ' FROM '+@BaseTable

If @JoinTables Is Not Null

BEGIN

SET @SQLSTMT = @SQLSTMT + ' ' +@JoinTables

SET @SQLSTMT1 = @SQLSTMT1 + ' ' +@JoinTables

END

DECLARE @StmtWhereClause nvarchar(500)

SET @StmtWhereClause =''

--------------------- Get where conditional clause

If (@SearchText Is Not Null AND RTRIM(LTRIM(@SearchText))<>'')

BEGIN

SET @StmtWhereClause = @StmtWhereClause + ' WHERE ' + @SearchText

END





If @ConditionalClause Is Not Null AND RTRIM(LTRIM(@ConditionalClause))<>''

BEGIN

IF (@StmtWhereClause <> '')

BEGIN

SET @StmtWhereClause= @StmtWhereClause + 'AND ' +@ConditionalClause

END

ELSE

BEGIN

SET @StmtWhereClause = @StmtWhereClause + ' WHERE ' + @ConditionalClause

END

END



SET @SQLSTMT = @SQLSTMT + @StmtWhereClause

SET @SQLSTMT1 = @SQLSTMT1 + @StmtWhereClause

If @GroupByFields Is Not Null And RTRIM(LTRIM(@GroupByFields))<>''

BEGIN

SET @SQLSTMT = @SQLSTMT + ' Group By ' +@GroupByFields

SET @SQLSTMT1 = @SQLSTMT1 + ' Group By ' +@GroupByFields

END

IF @SortExpression Is Not Null AND RTRIM(LTRIM(@SortExpression))<>''

BEGIN

SET @SortExpression = LTRIM(RTRIM(' Order By '+ @SortExpression))

SET @SQLSTMT = @SQLSTMT +' '+ @SortExpression

SET @SQLSTMT1 = @SQLSTMT1 +' '+ @SortExpression

END

SET @SQLSTMT1= @SQLSTMT1+' SELECT @CountValue As MyRows '

--SELECT @SQLSTMT1

--SELECT @SQLSTMT

DECLARE @StartRow INT

SET @SQLSTMT = ' DECLARE temp_Cursor CURSOR SCROLL FOR '+@SQLSTMT

EXECUTE SP_EXECUTESQL @SQLSTMT

Open temp_Cursor

DECLARE @RowCount INT

SET @RowCount = 1

SET @startRow = (@PageSize * (@PageNumber-1))+@RowCount

--SELECT @startRow as 'Current Row'

WHILE @RowCount <= @PageSize

BEGIN

--Select @StartRow 'as @StartRow'

FETCH ABSOLUTE @startRow From temp_Cursor

SET @RowCount= @RowCount+1

SET @StartRow = @startRow + 1

END

deallocate temp_Cursor

EXECUTE SP_EXECUTESQL @SQLSTMT1



END

It is working fine but I have problem with this kind of paging. I need to load the whole data into the cursor and i have to fetch records. The problem is that my table's contains more than Half a million records in it. If I have to load each time this cursor it will be a very big problem on the server side.

Probably it may not be a best solution, but sqlserver 2000 cannot provide more help than this. If I use sub-query for this like using Top <Number> it adversly effecting the nature of the data retrieval.

One solution that I am thinking is Load cursor once and whenever some updations performed on those tables from which cursor is getting data should be automatically reflect the changes.

Is this possible? Please help me.

Regards

Andy Rogers









View 3 Replies View Related

SSRS 2000 Data Not Refreshing In Report

May 7, 2007

Good day,

I have a SSRS 2000 report that when I view the report data does not refresh until I press the refresh data button in the report. Clearly this can't be right and to expect users to press the refresh button every single time is also rediculous.

HAs anyone had this problem before and know what to do.

Please help.

Thanks

View 3 Replies View Related

Refreshing Metadata Of Transformations In The Data Flow

Jan 10, 2007

Hello,

I created a slowly changing dimension object and used an OLE DB Source object with a SQL Command to feed it. After all the SCD objects are created, I get a warning about a truncation which might happen.

I adjust the source query with the right converts, so the query uses data types and lengths which match the target table. I update the OLE DB Source with the new query. Column names are unchanged.

Now how do I get this data flow to reflect the new column lengths? Do I have to throw away all objects and recreate the SCD? The refresh button in the SCD object doesn't do it. This is also a problem when adding columns to your dimension table. Because I modify the stuff that the SCD generates, it's VERY teadious to always have to throw it all away and start over again.

Thnx. Jeroen.

View 7 Replies View Related

Refreshing A Development Database With Production Data

Jan 17, 2007

Hello,

I am trying to refresh a test database with data from a production database. Both database structures are identical, e.g. constraints, stored procs, PK, etc. I am trying to create a package in SSIS that accomplishes this task and I am having extensive problems. The import export wizard is out of the question because the constaints are not carried over, plus when I try to refresh the data using the import export wizard, it fails on 1 specific table because of a column in that table named "Error code". I think "Error code" is a micrsoft keyword, so it fails on this column. Does anyone know a workaround that I can do to accomplish this simple task, that could be completed in minutes using DTS. I understand that SSIS is not as straight forward as DTS, but this task is something that DBA's do on a regular basis and therefore should not be this difficult.

Any help would be appreciated,

David

View 1 Replies View Related

Refreshing Data In Hyperion Essbase Cubes

Jul 11, 2006

Hi all,

Normally I would be using SSAS but our finance department make use of Hyperion Essbase. I was wondering whether it was possible to upload data into an Essbase cube using SSIS in the same way that you can use the Analysis Services processing task? I realise there are no specific task for Essbase, but are there any suggestions about what would be the best way of going about this?

regards

 

Colin

View 4 Replies View Related

Analysis :: Excel 2010 Not Refreshing Data From Cube?

Aug 21, 2015

So I use Excel 2010 connect to a cube I have built.  Then I change some values in the cube via my ETL and re-process the cube.  Then I verify that record is NOT there in the fact table - check!

However, when I refresh the worksheet where the pivot table is pulling data from the cube, but that old record wont go away!

Just realized my cube data source on the dev server, was in fact still configured with my local workstation name. Once I updated that, processed the cube all was well.

View 2 Replies View Related

Problem With Data Refreshing After Insert Or Update Statement

Mar 18, 2008

Dear All,

Im using VS2008, visual basic and SQL Server express.

General questions please: Is it necessary, to issue some sort of command, to 'commit' data to a SQL express database after a INSERT or UPDATE sql command?

I'm getting strange behavior where the data is not refreshed unless i exit my app and re-enter. In other words, i can run a sql command , the data is apparantly saved (because i get no errors) then if i refresh a data set or do a sql select query the data that i expect to return is not there.

Im fairly new to SQL express (and SQL server generally) so i dont know if its my coding or i need to switch some 'feature'
on/off or not.

I hope thats clear

Also, could someone point me to documentation that explains each parameter in the connection string

Many Thanks

Chris Anderson


My code is:


ConnectionString = "Data Source=.SQLEXPRESS;AttachDbFilename=C:myfile.mdf;Integrated Security=True;Connect Timeout=30;User Instance=True"

Connection = New SqlConnection

Connection.ConnectionString = ConnectionString

Connection.Open()
'''''''''''''''''the above code is done at the start of my application


'''''''this code below called during application many times


dim sql as string = "my sql string here"

Dim cmd As SqlCommand = Nothing

cmd = New SqlCommand(sql, Connection)






Try

cmd.ExecuteNonQuery()

Catch err As SqlException

MessageBox.Show(err.Message.ToString())

MessageBox.Show(sql, "SQL ERROR: ", MessageBoxButtons.OK, MessageBoxIcon.Error)

End Try



cmd.Dispose()

View 5 Replies View Related

How To Know Existence Of The Data In The Databse

Jun 9, 2008

Hi Friends,I have one table in the databse,i.e userTable with one field userNameIn my form I have one Label ,textbox for entering the userName and One button for submit,So I am entering the data into the table(userTable) after clicking on the submit buttonBut my problem is before entering the data into the table I want to find wheather the given data exits or notif its not exists the data has to insert into the table otherwise its has to display the message"the user is already existed"for this I wrote the code like this in C# public Boolean isUserExists()    {        SqlCommand cmduserName = new SqlCommand("select count(*) from userTable where userName= " + txtuserName.Text + ")", conn);        SqlDataReader rdr = null;        rdr = cmduserName.ExecuteReader();                 conn.Open();               int count = 0;        while (rdr.NextResult())        {            count = rdr.GetInt32(1);        }        conn.Close();        if (count == 0)        {            return false;        }        else        {            return true;        }              protected void Button1_Click(object sender, EventArgs e)    {        if(isUserExists())            {                Response.Write("Opps ! User already Exists");                                       }                SqlCommand adapInsert = new SqlCommand("insert into userName values('" + txtuserName.Text + "')",conn);        conn.Open();        adapInsert.ExecuteNonQuery();        conn.Close();        Response.Write("data inserted");       }   is it write or not because I am not getting the output .please tell me any one where I have to change the code ThanksGeeta 

View 3 Replies View Related

Getting Data From Remote Databse

Jun 18, 2007

I am an authenticated user of a remote data base

I can log in and add tables and even I can back up the database .

Good.



But I want to get a copy of the database to my local computer

Is there any way to do this?





_sujithsql_

View 7 Replies View Related

SQL 2012 :: Refreshing MSDB SSIS Packages From One Server To Another

Mar 25, 2015

I was recently tasked with creating an automated process to refresh SSIS packages from MSDB on one server to another and I decided to go the route of using Powershell, however this wasn't as straight forward as I originally imagined so I thought I would share my solution in case others encounter the same request. The below PowerShell code will create all Integration Services folders from the source MSDB (that contain SSIS packages) on the target instance of MSDB then copy all packages to the proper folder locations. The /QUIET option is used to automatically overwrite packages that already exist on the target so make sure you want to overwrite the current versions of your packages before executing.

[Reflection.Assembly]::LoadWithPartialName("Microsoft.SQLServer.ManagedDTS") | out-NULL

$app = New-Object Microsoft.SqlServer.Dts.Runtime.APPLICATION
$SourceServer = "<source server name>"
$TargetServer = "<target server name>"

$Packages = Invoke-Sqlcmd -MaxCharLength 10000000 -ServerInstance $SourceServer -Query "

[Code] .....

View 0 Replies View Related

Copy Databse To Another Server

Nov 4, 2005

Hello,,
I backed up my database and it created a BAK file. Now I move this file to other server and trying to restore from it. It is giving me error: Device activation error. Do I have to create database before restoring. I do not have this database available in other server and I need to copy database with all constrains and tables.
Thanks,

View 2 Replies View Related

Sql Databse Restore To Another Server

May 22, 2008

Hi all,

I am planning to restore of a SQL 2000 Database on another server
can you folks tip me in the right direction with the SQL script to be used.

any help much appreciated

Much thanks in advance


Josephine

View 5 Replies View Related

Assigning User Name And Password Form The Databse To Ssis Package For Data Flow Operations And Execute Sql Statement

May 8, 2008

hi in my package, some sql operations need the special user name and admin privilage. so how do i create my ssis package so that when it executes it takes the given username and password from the table in some database.

View 8 Replies View Related

Attching A Databse To The SQL Server 2000

Jun 20, 2007

I am using " Microsoft.SqlServer.Management.Smo". I am trying to attach a database using the AttachDatabse method in it. but it is not working for me.
 I am pasting my code as follows...tell me the problem or the right way to do it....
SqlConnection Connection = new SqlConnection("Data Source=SHEBZ; User ID=sa; Password=sa");Microsoft.SqlServer.Management.Common.ServerConnection con = new Microsoft.SqlServer.Management.Common.ServerConnection(Connection);Server ser = new Server("SHEBZ");
ser.ConnectionContext.Connect();
System.Collections.Specialized.StringCollection File = new System.Collections.Specialized.StringCollection();File.Add(@"D:Project-PartsMasterPageOfficeUploadsDb3");
try
{ser.AttachDatabase("Db3", File);
}catch (Exception ex)
{Label1.Text = "ERROR: " + ex.Message.ToString();
}
 

View 2 Replies View Related

Urgent: Help Moving The Databse To A New Server

Mar 12, 2002

Hi
We are planning to move the sql 2000 database to a new server. These 2 servers are not going to be on the network at the same time, due to network identification problems.

We have to move a database to this new server. I know that detaching and attaching the databse logins are not copied. To use the sp_linked server option is not possible since these 2 servers are not up at the same time.( Is this correct? )
Is the backup and restore only my option for doing this? or any other easy methods exist?

Please suggest the better and safe way to do this. They are planning to do this at the end of the day.

Thanks in advance.
Padma

View 1 Replies View Related

SQL Server Databse Problem (user Password)

Aug 1, 2007

Ok so I have a SQL server database set up and I can't figure out how to create the spot where the user's login password should go and also what the specifics of the password column should be.....and yeah....all help is appreciated

View 3 Replies View Related

Connecting To An Oracle Databse Server Using SQL Express

Jan 10, 2006

Hello everyone,

 

I am working on a project for a professor. The project entails
designing and creating a database.  We
were given individual space on the schools database server and we were given
SSH secure shell to connect and manage our respective databases.  I took it upon myself to try out SQL Server
Express.  Using the management studio I
am trying to connect to my school database and can€™t seem to figure it
out.  Can someone please give a noob some
simple and quick instructions on how to achieve this?

 

Thank you,

Your Friendly Neighborhood Programmer,

 

This is the SSH product in case any one was interested, ftp://ftp.ssh.com/pub/ssh/SSHSecureShellClient-3.2.9.exe

 

View 1 Replies View Related

SQL Server Project - Failed To Connect To Databse...

Aug 6, 2005

Hi! I installed SQL Server on my server today and im new to it. I configured it and now im trying to make a SQL Server Project with my other computer... Then the program asks for some account information to logon to a database on the server. Then i fill it out and i get this error: Login failed for user "anaxyd". The user is not associated with a trusted SQL Server connection.

View 7 Replies View Related

Converting A SQLite Database To A SQL Server 2005 Databse

Jun 5, 2007

Hi



I have a SQLite database. I want to convert it to a SQL Server 2005 database. Can u guide me how to do it?



Imalka

View 1 Replies View Related

Refreshing Test Dbs

Oct 14, 2002

I need to refresh a test db that is running on the same instance as the prod db. Should I just use DTS or is there a better way?

View 3 Replies View Related

Parameter Isn't Refreshing

Jan 25, 2007

Hi.
I have a datasource that depend on parameter A.
Parameter A get his values from query and have a defualt value.
Parameter B get his default value from query that depend on parameter A.

Now, whan I run the report, parameter A get a value and then parameter B get his value and the
datasource run OK.

But the problem is that when I'm changing the A value (from the value list) - The datasource run fine but Parameter B stay with the old value with out any change.

Does any one know how to solve it.
I'll be happy to give more explanation if it isn't clear enough.

Thanks.

View 5 Replies View Related

Automatic Refreshing

May 9, 2007

I am wondering if it is possible to have a report generated by RS refresh periodically automatically. This could be realized by inserting a few lines of JavaScript to the report including the reload() function, but I do not know if there is anyway to do such thing.



Thanks in advance for any tip!

View 5 Replies View Related

Report Continually Refreshing

Jul 19, 2007

Hi All,

I had an interesting problem come up today. I have a report that when you preview on vs or click view report on the report server, the report continually refreshes itself. I cannot see that I have written anything different in this report than any other report.



I saw one other append here on a continually refreshing report but that was linked to a document map and this report has not document map.



Has anyone seen this problem of a continually refreshing report?



It's not a big deal as I figure I will just have to write it from scratch again, but I am interested to see if I can stop it before I re-write it.



Thanks in Advance



Peter

View 3 Replies View Related

Refreshing Database Before Restart

Jun 8, 2007



i am running a game from a dedi box .. ms sql..

and every time i restart and put it back up ,,,,it rewinds the database

the only way i can prevent this is if i restart the server

wait a phew hours then put it back up ,,"which makes it the same way it was when i logged off"

i was told that sql database servers refresh every hour.

is there a way i can make it refresh before i restart it so then i can put the server straight back up





if i restart the server back up straight away it does a rewind for some reason.





tech ::

the server does a rewind because it wouldn't have saved the game so to speak - as in updated everyone's characters. So yes waiting is the only way as far as I know to save the game.

View 3 Replies View Related

Refreshing A Dataset In RS 2005

Feb 20, 2008



I have a report in RS that uses a cube as a data source. I made some changes to a cube in AS 2005 and I am not sure how I can refresh my existing datasets without deleting everything?


Any feedback is greatly appreciated.
Thanks!

View 4 Replies View Related

Problem With Reportviewer While Refreshing

May 8, 2007



Hai,



Im having a report.When i click on one item in Report it navigate to second Report.Here Second report acts as a Child report.Whne i click on refresh button it goes back parent report.Some times i get error



"
Failed to load viewstate. The control tree into which viewstate is being loaded must match the control tree that was used to save viewstate during the previous request. For example, when adding controls dynamically, the controls added during a post-back must match the type and position of the controls added during the initial request. "

Plz help its very imp.

With regards,
Mahender

View 3 Replies View Related

SQLDatasource && Schema Refreshing (with Parameters)

Apr 9, 2006

Hi,
I'm having serious issues trying to refresh a schema in a SQLDatasource.  It is hooked to a stored procedure that takes two varchar(39) parameters.   The default parameters in this case are '%'. Note I am working in the designer.
If I set it up as a stored proc, I can't even get the 'test query' to run in the builder.
If I set it up as a select statement, ala 'exec <procname> @p1, @p2', the 'test query' will run.
In neither case will hitting refresh schema work.  It returns 'Invalid length parameter passed to the substring function'
The stored proc is nothing special, simply returning a select based upon the parameters.
Thanks,
Nick H

View 2 Replies View Related

Automatically Refreshing OLAP Cubes...

Dec 14, 2000

Can someone tell me how you can automate the refresh of OLAP Cubes? I just inhereted a data warehouse running on SQL7 and the idea of having to go in and manually refresh the cubes everyday is, well... stupid. I can't believe that they've been doing this for a year. Unfortunately, I'm not familar enough with MSOLAP yet and I can't figure this out. Any tips?

View 2 Replies View Related

Loosing Connection Upon Refreshing Page

May 31, 2005

Hi,

I'm getting a connection and then loosing my connection upon refreshing the browser with this script connecting to MSSQL using php, when trying the following:


PHP Code:




 $connection = mssql_connect("127.0.0.1","test","") or 
die("Could not connect mssql db on " .$config['dbhost']);
        
mssql_select_db("dbName") or
die("Could not select database " ."dbName"); 






Are their other ways to see more error handling in connecting to MSSQL

View 1 Replies View Related







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