Hi,
I created one blank ADP to connect default tempdb database on MSDE on server ASHFAQUEPC (name of my msde server). Tested the connection was successful.
I created a table called Testtable from command prompt (MSSQL/Binn) in default tempdb of MSDE using following lines:
Binn>osql/U sa mypassword
1> use tempdb
1> go
1> Create table Testtable (Cnum integer NOT NULL PRIMARY KEY, City Varchar(15))
1> go
Table Created successfully then I added 2-3 records using following lines;
1> INSERT INTO testable (cnum, city)
1> values (1, abc)
1> go
1 Record affected and I did same to add 2-3 more records. Then I used following lines to see all the records I entered.
1> select * from testable
1> go
And a list of records displayed at command prompt. After exit from command prompt I found a Testtable appeared in the above ADP.
But next day when I opened my pc and opened ADP, I did not found the Testtable even though I re-connected to tempdb on MSDE from File menu. I reached then to command prompt to see whether the table itself is existing. Strange it was not there.
Can somebody tell me how can I get connected to testable automatically when I open my ADP? Where might have gone wrong? Do I need to create table again and input records?
I want to make sure before I do anything with my real dbs.
Any help would be highly appreciated.
With kind regards,
Ashfaque :confused:tempdb is recreated everytime sql server restarts. msde restarts when the last connection is closed. create a database with the create database command and create your table in there.|||Thanks Thrasymachus,
IC,
I will create my own db from scratch.
Thanks again....
Wiith kind regards,
Ashfaque|||You should definitely not be mucking around in TEMPDB, MASTER, or MSDB. Even MODEL should not be modified without good cause. Leave the system databases alone, and I'd advise you to read the manual BEFORE trying to fly the plane.|||What the blind dude is saying (with his usual grace and elegance), is that you really need to create a datbase for your purposes, and create all of you objects in there.
tempdb is a critical part of the sql server architecture that allows it to manage your "temporary" objects you can create. Temp tables, derived tables, etc. You should not interfere with it's operation.
btw, have you had a look at SQL Server Express and XM Manager?
It's still beta, but it should be coming out full time soon.
http://download.microsoft.com/download/a/6/3/a63ec922-913e-4228-93e3-970abff3fd66/ReadmeSQLExpMgr.htm|||Thanks blindman & Brett Kaiser for your advice.
I was not aware of behavior of these 4 default models on MSDE.
I upsized my MDB and it successfully created ADP and found steady. I can now go on to take further actions over it. I am close to mid-level carrier in handling MDBs in form of FE and BE. But as a little advance step, I used MSDE and I hope I could deal with it successfully with the help you Genius guys.
btw, have you had a look at SQL Server Express and XM Manager?
No, I did not take a look at SQL Server Express and XM Manager but I will do so.
Thanks again for you people..
With kind regards,
Ashfaque|||One more question...
I upsized the tables on MSDE successfully keeping the current db as MDB.
Why I dont know , the record in my subform is appearing but I can not enter new records any more..(Be is on MSDE). If my tables are on local (Not on MSDE server) it works fine.
Any idea ...?
With kind regards,
Ashfaque|||Could be a permissions issue with your login. Do you get any error messages?
Showing posts with label tempdb. Show all posts
Showing posts with label tempdb. Show all posts
Thursday, March 8, 2012
Thursday, February 9, 2012
adjusting size of templog does not remain
A bit bizarre I could be overlooking something since tempdb is not like a us
er database.
Our log size for tempdb (templog) is 15mb, I need to increase this to 20mb.
I do so through the SQL Enterprise Manager. Adjust the size, hit apply and
the size is adjusted!
When I run a Financial apps that uses tempdb, I receive the message that the
templog files are full backup and ...
When I go back to tempdb the templog file is back at 15mb.
Jeff
Message posted via http://www.droptable.comPerhaps you restarted SQL Server in between. Size for tempdb at startup you
set using ALTER
DATABASE.
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
http://www.sqlug.se/
"Jeffrey Sheldon via droptable.com" <forum@.droptable.com> wrote in message
news:c83bbdcd541d46a4bb16394dcf882151@.SQ
droptable.com...
>A bit bizarre I could be overlooking something since tempdb is not like a u
ser database.
> Our log size for tempdb (templog) is 15mb, I need to increase this to 20mb
.
> I do so through the SQL Enterprise Manager. Adjust the size, hit apply an
d the size is adjusted!
> When I run a Financial apps that uses tempdb, I receive the message that t
he templog files are
> full backup and ...
> When I go back to tempdb the templog file is back at 15mb.
> Jeff
> --
> Message posted via http://www.droptable.com|||actually i thought the same..but when i change it on one of my local machine
using EM and restart sql server i see size of tempdb after the modification.
.
"Tibor Karaszi" wrote:
> Perhaps you restarted SQL Server in between. Size for tempdb at startup yo
u set using ALTER
> DATABASE.
> --
> Tibor Karaszi, SQL Server MVP
> http://www.karaszi.com/sqlserver/default.asp
> http://www.solidqualitylearning.com/
> http://www.sqlug.se/
>
> "Jeffrey Sheldon via droptable.com" <forum@.droptable.com> wrote in messa
ge
> news:c83bbdcd541d46a4bb16394dcf882151@.SQ
droptable.com...
>
>|||Ahh yes, the lightbulb went off. tempdb needs the ALTERDATABASE command to
adjust its data/log files.
Thanks
Jeff
Message posted via http://www.droptable.com|||Ok now I am stumped.
I did
use master
ALTER DATABASE tempdb
MODIFY FILE
(name = templog,
size = 20MB)
go
The templog is then adjusted to 20mb.
I run my financial stored procedure and receive the message templog ran out
of space blah blah...
So I go back to review and increase so more, but lo and behold templog is Ba
ck at 15mb!!!!
A stored procedure that simply taking data from one database (less than 2000
records) and using temp tables to do some calculations make the log file sh
ift back to 15mb.
Any ideas?
Jeff
Message posted via http://www.droptable.com|||What size does master..sysaltfiles specify for the file? Also, perhaps you h
ave autoshrink turned on
for the tempdb database?
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
http://www.sqlug.se/
"Jeffrey Sheldon via droptable.com" <forum@.droptable.com> wrote in message
news:29ce9a8218c945548d497982ae85ee55@.SQ
droptable.com...
> Ok now I am stumped.
> I did
> use master
> ALTER DATABASE tempdb
> MODIFY FILE
> (name = templog,
> size = 20MB)
> go
> The templog is then adjusted to 20mb.
> I run my financial stored procedure and receive the message templog ran ou
t of space blah blah...
> So I go back to review and increase so more, but lo and behold templog is
Back at 15mb!!!!
> A stored procedure that simply taking data from one database (less than 20
00 records) and using
> temp tables to do some calculations make the log file shift back to 15mb.
> Any ideas?
> Jeff
> --
> Message posted via http://www.droptable.com
er database.
Our log size for tempdb (templog) is 15mb, I need to increase this to 20mb.
I do so through the SQL Enterprise Manager. Adjust the size, hit apply and
the size is adjusted!
When I run a Financial apps that uses tempdb, I receive the message that the
templog files are full backup and ...
When I go back to tempdb the templog file is back at 15mb.
Jeff
Message posted via http://www.droptable.comPerhaps you restarted SQL Server in between. Size for tempdb at startup you
set using ALTER
DATABASE.
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
http://www.sqlug.se/
"Jeffrey Sheldon via droptable.com" <forum@.droptable.com> wrote in message
news:c83bbdcd541d46a4bb16394dcf882151@.SQ
droptable.com...
>A bit bizarre I could be overlooking something since tempdb is not like a u
ser database.
> Our log size for tempdb (templog) is 15mb, I need to increase this to 20mb
.
> I do so through the SQL Enterprise Manager. Adjust the size, hit apply an
d the size is adjusted!
> When I run a Financial apps that uses tempdb, I receive the message that t
he templog files are
> full backup and ...
> When I go back to tempdb the templog file is back at 15mb.
> Jeff
> --
> Message posted via http://www.droptable.com|||actually i thought the same..but when i change it on one of my local machine
using EM and restart sql server i see size of tempdb after the modification.
.
"Tibor Karaszi" wrote:
> Perhaps you restarted SQL Server in between. Size for tempdb at startup yo
u set using ALTER
> DATABASE.
> --
> Tibor Karaszi, SQL Server MVP
> http://www.karaszi.com/sqlserver/default.asp
> http://www.solidqualitylearning.com/
> http://www.sqlug.se/
>
> "Jeffrey Sheldon via droptable.com" <forum@.droptable.com> wrote in messa
ge
> news:c83bbdcd541d46a4bb16394dcf882151@.SQ
droptable.com...
>
>|||Ahh yes, the lightbulb went off. tempdb needs the ALTERDATABASE command to
adjust its data/log files.
Thanks
Jeff
Message posted via http://www.droptable.com|||Ok now I am stumped.
I did
use master
ALTER DATABASE tempdb
MODIFY FILE
(name = templog,
size = 20MB)
go
The templog is then adjusted to 20mb.
I run my financial stored procedure and receive the message templog ran out
of space blah blah...
So I go back to review and increase so more, but lo and behold templog is Ba
ck at 15mb!!!!
A stored procedure that simply taking data from one database (less than 2000
records) and using temp tables to do some calculations make the log file sh
ift back to 15mb.
Any ideas?
Jeff
Message posted via http://www.droptable.com|||What size does master..sysaltfiles specify for the file? Also, perhaps you h
ave autoshrink turned on
for the tempdb database?
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
http://www.sqlug.se/
"Jeffrey Sheldon via droptable.com" <forum@.droptable.com> wrote in message
news:29ce9a8218c945548d497982ae85ee55@.SQ
droptable.com...
> Ok now I am stumped.
> I did
> use master
> ALTER DATABASE tempdb
> MODIFY FILE
> (name = templog,
> size = 20MB)
> go
> The templog is then adjusted to 20mb.
> I run my financial stored procedure and receive the message templog ran ou
t of space blah blah...
> So I go back to review and increase so more, but lo and behold templog is
Back at 15mb!!!!
> A stored procedure that simply taking data from one database (less than 20
00 records) and using
> temp tables to do some calculations make the log file shift back to 15mb.
> Any ideas?
> Jeff
> --
> Message posted via http://www.droptable.com
adjusting size of templog does not remain
A bit bizarre I could be overlooking something since tempdb is not like a user database.
Our log size for tempdb (templog) is 15mb, I need to increase this to 20mb.
I do so through the SQL Enterprise Manager. Adjust the size, hit apply and the size is adjusted!
When I run a Financial apps that uses tempdb, I receive the message that the templog files are full backup and ...
When I go back to tempdb the templog file is back at 15mb.
Jeff
Message posted via http://www.sqlmonster.com
Perhaps you restarted SQL Server in between. Size for tempdb at startup you set using ALTER
DATABASE.
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
http://www.sqlug.se/
"Jeffrey Sheldon via SQLMonster.com" <forum@.SQLMonster.com> wrote in message
news:c83bbdcd541d46a4bb16394dcf882151@.SQLMonster.c om...
>A bit bizarre I could be overlooking something since tempdb is not like a user database.
> Our log size for tempdb (templog) is 15mb, I need to increase this to 20mb.
> I do so through the SQL Enterprise Manager. Adjust the size, hit apply and the size is adjusted!
> When I run a Financial apps that uses tempdb, I receive the message that the templog files are
> full backup and ...
> When I go back to tempdb the templog file is back at 15mb.
> Jeff
> --
> Message posted via http://www.sqlmonster.com
|||actually i thought the same..but when i change it on one of my local machine
using EM and restart sql server i see size of tempdb after the modification...
"Tibor Karaszi" wrote:
> Perhaps you restarted SQL Server in between. Size for tempdb at startup you set using ALTER
> DATABASE.
> --
> Tibor Karaszi, SQL Server MVP
> http://www.karaszi.com/sqlserver/default.asp
> http://www.solidqualitylearning.com/
> http://www.sqlug.se/
>
> "Jeffrey Sheldon via SQLMonster.com" <forum@.SQLMonster.com> wrote in message
> news:c83bbdcd541d46a4bb16394dcf882151@.SQLMonster.c om...
>
>
|||Ahh yes, the lightbulb went off. tempdb needs the ALTERDATABASE command to adjust its data/log files.
Thanks
Jeff
Message posted via http://www.sqlmonster.com
|||Ok now I am stumped.
I did
use master
ALTER DATABASE tempdb
MODIFY FILE
(name = templog,
size = 20MB)
go
The templog is then adjusted to 20mb.
I run my financial stored procedure and receive the message templog ran out of space blah blah...
So I go back to review and increase so more, but lo and behold templog is Back at 15mb!!!!
A stored procedure that simply taking data from one database (less than 2000 records) and using temp tables to do some calculations make the log file shift back to 15mb.
Any ideas?
Jeff
Message posted via http://www.sqlmonster.com
|||What size does master..sysaltfiles specify for the file? Also, perhaps you have autoshrink turned on
for the tempdb database?
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
http://www.sqlug.se/
"Jeffrey Sheldon via SQLMonster.com" <forum@.SQLMonster.com> wrote in message
news:29ce9a8218c945548d497982ae85ee55@.SQLMonster.c om...
> Ok now I am stumped.
> I did
> use master
> ALTER DATABASE tempdb
> MODIFY FILE
> (name = templog,
> size = 20MB)
> go
> The templog is then adjusted to 20mb.
> I run my financial stored procedure and receive the message templog ran out of space blah blah...
> So I go back to review and increase so more, but lo and behold templog is Back at 15mb!!!!
> A stored procedure that simply taking data from one database (less than 2000 records) and using
> temp tables to do some calculations make the log file shift back to 15mb.
> Any ideas?
> Jeff
> --
> Message posted via http://www.sqlmonster.com
Our log size for tempdb (templog) is 15mb, I need to increase this to 20mb.
I do so through the SQL Enterprise Manager. Adjust the size, hit apply and the size is adjusted!
When I run a Financial apps that uses tempdb, I receive the message that the templog files are full backup and ...
When I go back to tempdb the templog file is back at 15mb.
Jeff
Message posted via http://www.sqlmonster.com
Perhaps you restarted SQL Server in between. Size for tempdb at startup you set using ALTER
DATABASE.
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
http://www.sqlug.se/
"Jeffrey Sheldon via SQLMonster.com" <forum@.SQLMonster.com> wrote in message
news:c83bbdcd541d46a4bb16394dcf882151@.SQLMonster.c om...
>A bit bizarre I could be overlooking something since tempdb is not like a user database.
> Our log size for tempdb (templog) is 15mb, I need to increase this to 20mb.
> I do so through the SQL Enterprise Manager. Adjust the size, hit apply and the size is adjusted!
> When I run a Financial apps that uses tempdb, I receive the message that the templog files are
> full backup and ...
> When I go back to tempdb the templog file is back at 15mb.
> Jeff
> --
> Message posted via http://www.sqlmonster.com
|||actually i thought the same..but when i change it on one of my local machine
using EM and restart sql server i see size of tempdb after the modification...
"Tibor Karaszi" wrote:
> Perhaps you restarted SQL Server in between. Size for tempdb at startup you set using ALTER
> DATABASE.
> --
> Tibor Karaszi, SQL Server MVP
> http://www.karaszi.com/sqlserver/default.asp
> http://www.solidqualitylearning.com/
> http://www.sqlug.se/
>
> "Jeffrey Sheldon via SQLMonster.com" <forum@.SQLMonster.com> wrote in message
> news:c83bbdcd541d46a4bb16394dcf882151@.SQLMonster.c om...
>
>
|||Ahh yes, the lightbulb went off. tempdb needs the ALTERDATABASE command to adjust its data/log files.
Thanks
Jeff
Message posted via http://www.sqlmonster.com
|||Ok now I am stumped.
I did
use master
ALTER DATABASE tempdb
MODIFY FILE
(name = templog,
size = 20MB)
go
The templog is then adjusted to 20mb.
I run my financial stored procedure and receive the message templog ran out of space blah blah...
So I go back to review and increase so more, but lo and behold templog is Back at 15mb!!!!
A stored procedure that simply taking data from one database (less than 2000 records) and using temp tables to do some calculations make the log file shift back to 15mb.
Any ideas?
Jeff
Message posted via http://www.sqlmonster.com
|||What size does master..sysaltfiles specify for the file? Also, perhaps you have autoshrink turned on
for the tempdb database?
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
http://www.sqlug.se/
"Jeffrey Sheldon via SQLMonster.com" <forum@.SQLMonster.com> wrote in message
news:29ce9a8218c945548d497982ae85ee55@.SQLMonster.c om...
> Ok now I am stumped.
> I did
> use master
> ALTER DATABASE tempdb
> MODIFY FILE
> (name = templog,
> size = 20MB)
> go
> The templog is then adjusted to 20mb.
> I run my financial stored procedure and receive the message templog ran out of space blah blah...
> So I go back to review and increase so more, but lo and behold templog is Back at 15mb!!!!
> A stored procedure that simply taking data from one database (less than 2000 records) and using
> temp tables to do some calculations make the log file shift back to 15mb.
> Any ideas?
> Jeff
> --
> Message posted via http://www.sqlmonster.com
Subscribe to:
Posts (Atom)